CVE-2021-32796 Misinterpretation of malicious XML input in xmldom
MediumCVSS 5.3
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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.
Upgrade path
12 packages: 6 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-xmldom(Ubuntu 20.04) | = 0.1.27+ds-1; = 0.1.27+ds-1+deb10u2build0.20.04.1; All versions | No fix listed | No fix yet |
| ubuntu/node-xmldom(Ubuntu 24.04) | = 0.8.6-1; All versions | No fix listed | No fix yet |
| ubuntu/node-xmldom(Ubuntu 25.10) | = 0.9.6-1; All versions | No fix listed | No fix yet |
| ubuntu/node-xmldom(Ubuntu 26.04) | = 0.9.6-1; = 0.9.8-1; = 0.9.8-2; All versions | No fix listed | No fix yet |
| ubuntu/node-xmldom(Ubuntu 26.10) | = 0.9.8-2; = 0.9.10-2; = 0.9.11-1; All versions | No fix listed | No fix yet |
| debian/node-xmldom(Debian 12) | < 0.7.3-1 | 0.7.3-1 | Fixed |
| debian/node-xmldom(Debian 13) | < 0.7.3-1 | 0.7.3-1 | Fixed |
| debian/node-xmldom(Debian 14) | < 0.7.3-1 | 0.7.3-1 | Fixed |
| npm xmldom(npm) | <= 0.6.0 | after 0.6.0 | Fixed |
| xmldom(npm) | < 0.7.0 | 0.7.0 | Fixed |
| xmldom project xmldom | < 0.7.0 | 0.7.0 | Fixed |
| xmldom | = < 0.7.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm xmldom(npm) | <= 0.6.0 | No fix listed |
| xmldom(npm) | < 0.7.0 | 0.7.0 |
| debian/node-xmldom(Debian:12) | < 0.7.3-1 | 0.7.3-1 |
| debian/node-xmldom(Debian:13) | < 0.7.3-1 | 0.7.3-1 |
| debian/node-xmldom(Debian:14) | < 0.7.3-1 | 0.7.3-1 |
| xmldom project xmldom | < 0.7.0 | 0.7.0 |
| ubuntu/node-xmldom(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-xmldom(Ubuntu:26.04) | All versions | No fix listed |
| xmldom | = < 0.7.0 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/node-xmldom(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/node-xmldom(Ubuntu:20.04) | = 0.1.27+ds-1 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:20.04) | = 0.1.27+ds-1+deb10u2build0.20.04.1 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:24.04) | = 0.8.6-1 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/node-xmldom(Ubuntu:25.10) | = 0.9.6-1 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:26.10) | = 0.9.8-2 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:26.10) | = 0.9.10-2 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:26.10) | = 0.9.11-1 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:26.04) | = 0.9.6-1 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:26.04) | = 0.9.8-1 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:26.04) | = 0.9.8-2 | No fix listed |
References
- github.com issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- www.npmjs.com
- mattermost.com issue-tracking not-applicable third-party-advisory
- mattermost.com
- github.com
- Debian Security Tracker CVE-2021-32796 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- github.com product