CVE-2021-21366Misinterpretation of malicious XML input
- 4.3MediumCVSS base score
- 1.3%Exploitation in 30 daysEPSS · top 28% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.4.0 and older do not correctly preserve system identifiers, FPIs or namespaces when repeatedly parsing and serializing maliciously crafted documents. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This is fixed in version 0.5.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.
Timeline
ID reserved
By GitHub_M
- 3 months later
· 3 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.3% · top 28% of all CVEs (18 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.3.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References
References5
- https://github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv (opens in a new tab)x_transferred
- https://www.npmjs.com/package/xmldom (opens in a new tab)x_transferred
- https://github.com/xmldom/xmldom/releases/tag/0.5.0 (opens in a new tab)x_transferred
- https://github.com/xmldom/xmldom/commit/d4201b9dfbf760049f457f9f08a3888d48835135 (opens in a new tab)x_transferred
- [debian-lts-announce] 20230101 [SECURITY] [DLA 3260-1] node-xmldom security update (opens in a new tab)mailing-listx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0663 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-h6q6-9hqw-rwfv (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-21366)Record last updated .