GHSA-h6q6-9hqw-rwfv · Severity: medium · Ecosystem: npm — Misinterpretation of malicious XML input
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.
Conclusion & alert: CVE-2021-21366 is rated Moderate Risk (40.7/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.33%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-17 | 1.43% | 1.33% | -0.10% |
| 2 | 2026-06-15 | 1.34% | 1.43% | +0.09% |
| 3 | 2026-05-27 | — | 1.34% | — |
Full EPSS history (21 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 4.3 | 3.1 | MEDIUM |
|
2.8 | 1.4 | [email protected] |
| 4.3 | 3.1 | MEDIUM |
|
2.8 | 1.4 | [email protected] |
| 4.3 | 2.0 | MEDIUM |
|
8.6 | 2.9 | [email protected] |
GHSA-h6q6-9hqw-rwfv · Severity: medium · Ecosystem: npm — Misinterpretation of malicious XML input
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2021-21366 not yet assigned priority: Debian including 1 source packages (node-xmldom), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2021-21366 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2021-21366 |
ubuntu
|
medium | CVE-2021-21366 medium priority: Ubuntu including 1 source packages (node-xmldom), 11 status rows across 11 suites (bionic, focal, groovy, hirsute, impish, jammy, kinetic, lunar, trusty, upstream, xenial): DNE 3, ignored 3, not-affected 3, released 2. | https://ubuntu.com/security/CVE-2021-21366 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| xmldom_project | xmldom | < 0.5.0 | cpe:2.3:a:xmldom_project:xmldom:*:*:*:*:*:node.js:*:* |
| debian | debian_linux | 10.0 | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/xmldom/xmldom/commit/d4201b9dfbf760049f457f9f08a3888d48835135 | Patch |
| https://github.com/xmldom/xmldom/releases/tag/0.5.0 | Release Notes |
| https://github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv | Vendor Advisory |
| https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html | Mailing List Third Party Advisory |
| https://www.npmjs.com/package/xmldom | Product |