CVE catalog

CVE-2021-21366

node-xmldom: CVE-2021-21366

[CVE catalog]

Severity
Medium · CVSS 4.3CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.34% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-xmldomsid0.9.12-1fixed
Debiannode-xmldomforky0.9.12-1fixed
Debiannode-xmldomtrixie0.9.6-1fixed
Debiannode-xmldombookworm0.8.6-1fixed
Ubuntunode-xmldom20.040.1.27+ds-1vulnerable
Ubuntunode-xmldom20.040.1.27+ds-1+deb10u2build0.20.04.1fixed
Ubuntunode-xmldom22.040.5.0-1vulnerable
Ubuntunode-xmldom22.040.7.3-1vulnerable
Ubuntunode-xmldom22.040.7.5-1vulnerable
Ubuntunode-xmldom22.040.7.5-1ubuntu0.22.04.1fixed
Ubuntunode-xmldom20.040.1.27+ds-1vulnerable
Ubuntunode-xmldom20.040.1.27+ds-1+deb10u2build0.20.04.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-xmldomsourcesid0.5.0-1not yet assignedNot reportedNot reported
Debiannode-xmldomsourceforky0.5.0-1not yet assignedNot reportedNot reported
Debiannode-xmldomsourcetrixie0.5.0-1not yet assignedNot reportedNot reported
Debiannode-xmldomsourcebookworm0.5.0-1not yet assignedNot reportedNot reported
Ubuntunode-xmldomdeb20.040.1.27+ds-1+deb10u2build0.20.04.1Not reportedUSN-6102-1Not reported
Ubuntunode-xmldomdeb22.040.7.5-1ubuntu0.22.04.1Not reportedUSN-6102-1Not reported
Ubuntunode-xmldomdeb20.040.1.27+ds-1+deb10u2build0.20.04.1Not reportedUBUNTU-CVE-2021-21366Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 0.8.6-1 · all · bookworm

      Fixed · Fixed: 0.5.0-1

      dsa · node-xmldom · debian · bookworm; dsa · node-xmldom · debian · 12

    • 0.8.6-1 · all · bookworm

      Fixed · Fixed: 0.5.0-1

      dsa · node-xmldom · debian · bookworm; dsa · node-xmldom · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 0.9.6-1 · all · trixie

      Fixed · Fixed: 0.5.0-1

      dsa · node-xmldom · debian · 13

    • 0.9.6-1 · all · trixie

      Fixed · Fixed: 0.5.0-1

      dsa · node-xmldom · debian · 13

Observed:

References