Live threats

All CVEs / Xmldom Project

CVE-2021-32796Xmldom Project Xmldom

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.4%
probability of exploitation in 30 days · percentile 72
Auth required
No
Published
Jul 27, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-116, CWE-91
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Xmldom.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @xmldom/xmldom < 0.7.0 0.7.0 npm install @xmldom/xmldom@0.7.0
npm xmldom ≤ 0.6.0 no fixed version —

Per OSV / GitHub Advisories (GHSA-5fg8-2547-mr8q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
xmldom_projectxmldom< 0.7.0

Official sources

References

Links published by the sources. Open them with care.