Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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