CVE-2021-32796
Misinterpretation of malicious XML input in xmldom
Reported by github_m · Published July 27, 2021
xmldom is fixed in 0.6.0 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| xmldom | npm | 0.6.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| xmldom | xmldom | < 0.7.0 |
| xmldom | xmldom | 0 |
| xmldom | xmldom | 0 |
| npm | xmldom | 0 |
| chainguard | wazuh-dashboard | 0 |
| chainguard | wazuh-dashboard-fips | 0 |
Timeline
- Jul 27, 2021 CVE Published
- Jul 28, 2021 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory
- Aug 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-32796
vulnetix vdb fixes CVE-2021-32796
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32796/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-32796 advisory