Home / ONC / code-validator-api / CVE-2021-4295
CVE-2021-4295: is it exploited, and which versions of ONC code-validator-api are affected and fixed?
CVE-2021-4295 is a XML external entity (XXE) vulnerability in ONC code-validator-api. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: code-validator-api 1.0.0, code-validator-api 1.0.1, code-validator-api 1.0.2 and 28 more (CVE record by VulDB). Fixed in 1.0.31 (NVD). Severity: Medium (5.5, CVSS 3.1, from VulDB).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:42 UTC.
What is CVE-2021-4295?
ONC code-validator-api XML CodeValidatorApiConfiguration.java vocabularyValidationConfigurations xml external entity reference
A vulnerability classified as problematic was found in ONC code-validator-api up to 1.0.30. This vulnerability affects the function vocabularyValidationConfigurations of the file src/main/java/org/sitenv/vocabularies/configuration/CodeValidatorApiConfiguration.java of the component XML Handler. The manipulation leads to xml external entity reference. Upgrading to version 1.0.31 is able to address this issue. The name of the patch is fbd8ea121755a2d3d116b13f235bc8b61d8449af. It is recommended to upgrade the affected component. VDB-217018 is the identifier assigned to this vulnerability.
From the CVE record by VulDB, last updated August 3, 2024, 17:23 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ONC | code-validator-api | 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.0.10 1.0.11 and 19 more ranges |
As the CVE record by VulDB states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| healthit | code-validator-api | before 1.0.31 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:19 UTC.
How severe is CVE-2021-4295?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.5 | CVSS 3.1 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | VulDB |
| Medium 5.5 | CVSS 3.0 | CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | VulDB |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-4295 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.78% probability of exploitation activity in the next 30 days, percentile 57.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-611 Improper Restriction of XML External Entity Reference
Where are the vendor advisories and references?
- https://vuldb.com/?id.217018 vdb-entry, technical-description
- https://vuldb.com/?ctiid.217018 signature, permissions-required
- https://github.com/onc-healthit/code-validator-api/pull/97 issue-tracking
- https://github.com/onc-healthit/code-validator-api/commit/fbd8ea121755a2d3d116b13f235bc8b61d8449af patch
- https://github.com/onc-healthit/code-validator-api/releases/tag/1.0.31 patch
Who found and reported it?
- VulDB GitHub Commit Analyzer (tool)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- December 29, 2022
- Published
- December 29, 2022, 08:08 UTC
- CVE record updated
- August 3, 2024, 17:23 UTC by VulDB
- NVD
- Modified, last modified June 17, 2026, 04:19 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:42 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2021-4295
Is CVE-2021-4295 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.78% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of ONC code-validator-api are affected by CVE-2021-4295?
code-validator-api 1.0.0, code-validator-api 1.0.1, code-validator-api 1.0.2, code-validator-api 1.0.3, code-validator-api 1.0.4, code-validator-api 1.0.5 and 25 more, per the CVE record by VulDB. The tables above give every range the sources list.
Which version fixes CVE-2021-4295?
1.0.31, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-4295?
Medium (5.5, CVSS 3.1, from VulDB). The severity table above shows each score with its source.
Where is the official record of CVE-2021-4295?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.