Skip to content
Fencer Vulns
medium 6.5

CVE-2021-32796 json

Misinterpretation of malicious XML input in xmldom

published 2021-07-27 5 y ago modified 2026-09-10 1 mo ago also GHSA-5fg8-2547-mr8q , EUVD-2021-1574

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 71%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm @xmldom/xmldom 0.7.0
  • xmldom_project xmldom 0.7.0
  • node-xmldom Debian 14, Debian 13, Debian 12 0.7.3-1

debian advisories DEBIAN-CVE-2021-32796

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-32796 updated cvss 6.5

nodejs-xmldom: misinterpretation of malicious XML input

  • Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-ui-rhel8 Red Hat Fuse 7 syndesis syndesis
    not affected: vulnerable code not present “Applications using the vulnerable version of xmldom should properly validate the inputs and reject maliciously formed documents.”

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.36% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N
GitHub 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
npm xmldom
<=0.6.0
no fix listed
npm @xmldom/xmldom
<0.7.0
0.7.0

Affected products

  • xmldom xmldom

Classification

Weakness
  • CWE-116 Improper Encoding or Escaping of Output
  • CWE-91 XML Injection

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.