XPath Injection in Xmldom
CVE-2021-32796
xmldom is an open source pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.6.0 and older do not correctly escape special characters when serializing elements removed from their ancestor. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This issue has been resolved in version 0.7.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.
EPSS: 0.014 (69.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
Affected products
- Xmldom — versions < 0.7.0
- Xmldom_project Xmldom
Weakness classification (CWE)
References
- security-advisories@github.com (Third Party Advisory, x_refsource_MISC, Not Applicable)
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
Frequently asked questions
- What is CVE-2021-32796?
- CVE-2021-32796 is a medium-severity vulnerability in Xmldom, classified under Improper Encoding or Escaping of Output. CVSS score: 6.5/10. Published 2021-07-27.
- How severe is CVE-2021-32796?
- Medium severity. CVSS v3 base score is 6.5 out of 10.