CVE-2021-21366 Misinterpretation of malicious XML input
MediumCVSS 4.3
EPSS 1.3%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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.
Upgrade path
8 packages: 6 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-xmldom(Debian 12) | < 0.5.0-1 | 0.5.0-1 | Fixed |
| debian/node-xmldom(Debian 13) | < 0.5.0-1 | 0.5.0-1 | Fixed |
| debian/node-xmldom(Debian 14) | < 0.5.0-1 | 0.5.0-1 | Fixed |
| npm xmldom(npm) | < 0.5.0 | 0.5.0 | Fixed |
| ubuntu/node-xmldom(Ubuntu 20.04) | < 0.1.27+ds-1+deb10u2build0.20.04.1; = 0.1.27+ds-1 | 0.1.27+ds-1+deb10u2build0.20.04.1 | Fixed |
| xmldom project xmldom | < 0.5.0 | 0.5.0 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
| xmldom | = < 0.5.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm xmldom(npm) | < 0.5.0 | 0.5.0 |
| debian/node-xmldom(Debian:12) | < 0.5.0-1 | 0.5.0-1 |
| debian/node-xmldom(Debian:13) | < 0.5.0-1 | 0.5.0-1 |
| debian/node-xmldom(Debian:14) | < 0.5.0-1 | 0.5.0-1 |
| xmldom project xmldom | < 0.5.0 | 0.5.0 |
| debian linux | = 10.0 | No fix listed |
| xmldom | = < 0.5.0 | No fix listed |
| ubuntu/node-xmldom(Ubuntu:20.04) | < 0.1.27+ds-1+deb10u2build0.20.04.1 | 0.1.27+ds-1+deb10u2build0.20.04.1 |
| ubuntu/node-xmldom(Ubuntu:20.04) | = 0.1.27+ds-1 | No fix listed |
References
- github.com issue-tracking vendor-advisory
- github.com issue-tracking patch
- www.npmjs.com issue-tracking product
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking release-notes
- [debian-lts-announce] 20230101 [SECURITY] [DLA 3260-1] node-xmldom security update mailing-list third-party-advisory
- github.com
- Debian Security Tracker CVE-2021-21366 vendor-advisory
- github.com product
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking