CVE-2021-32796

Misinterpretation of malicious XML input in xmldom

MEDIUM
5.3
CVSS Score
Published: July 27, 2021 at 09:45 PM UTC
Updated: June 17, 2026 at 03:53 AM UTC
2 products affected across 2 vendorsXmldom@xmldom

Using xmldom by xmldom?

Get instant alerts when new vulnerabilities affect xmldom - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.7.0
Affected range stops below 0.7.0, so it looks safe — our inference, not a vendor statement
v < 0.7.0
Affected range stops below 0.7.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-116CWE-91

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card