Live threats

All CVEs / Xmldom Project

CVE-2021-21366Xmldom Project Xmldom

Medium 4.3 No auth needed

Priority
41
CVSS 3.1
4.3
EPSS
1.3%
probability of exploitation in 30 days · percentile 71
Auth required
No
Published
Mar 12, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-115, CWE-436
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

What happens

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.

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 < 0.5.0 0.5.0 npm install xmldom@0.5.0

Per OSV / GitHub Advisories (GHSA-h6q6-9hqw-rwfv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
xmldom_projectxmldom< 0.5.0
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.