CVEfocus › CVE database › CVE-2021-32796

CVE-2021-32796Misinterpretation of malicious XML input in xmldom

CVSS 6.5 MediumEPSS 1.4% (higher than 72% of CVEs)Published 2021-07-27Updated 2024-08-03Assigner: GitHub_M

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.

CWE-116

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Ubuntu, npm have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
2Under investigation
2Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-xmldomFix pendingUBUNTU-CVE-2021-32796
Ubuntu 26.04node-xmldomUnder investigationUBUNTU-CVE-2021-32796
Ubuntu 25.10node-xmldomWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-32796
Ubuntu 24.04node-xmldomUnder investigationUBUNTU-CVE-2021-32796
Ubuntu 22.04node-xmldomNot affected
vulnerable_code_not_present
Ubuntu 20.04node-xmldomWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-32796
Debian 14node-xmldomFixed0.7.3-1DEBIAN-CVE-2021-32796
Debian 13node-xmldomFixed0.7.3-1DEBIAN-CVE-2021-32796
Debian 12node-xmldomFixed0.7.3-1DEBIAN-CVE-2021-32796
npm library@xmldom/xmldomFixed0.7.0GHSA-5fg8-2547-mr8q
npm libraryxmldomFix pendingGHSA-5fg8-2547-mr8q

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.