Vulnerability in Xmldom
CVE-2021-21366
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS: 0.013 (70.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 71st percentile — 70.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.013 · newest: 0.013 · change: 0.000
Affected products
- Xmldom — versions < 0.5.0
- Xmldom Project
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv (Vendor Advisory)
- www.npmjs.com/package/xmldom (Product)
- github.com/xmldom/xmldom/releases/tag/0.5.0 (Release Notes)
- github.com/xmldom/xmldom/commit/d4201b9dfbf760049f457f9f08a3888d48835135 (Patch)
- lists.debian.org/debian-lts-announce/2023/01/msg00000.html (mailing-list, Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-21366?
- CVE-2021-21366 is a medium-severity vulnerability in Xmldom, classified under CWE-115. CVSS score: 4.3/10. Published 2021-03-12.
- How severe is CVE-2021-21366?
- Medium severity. CVSS v3 base score is 4.3 out of 10.
- Is CVE-2021-21366 known to be exploited?
- 4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.