CVE catalog

CVE-2022-39353

node-xmldom: CVE-2022-39353

[CVE catalog]

Severity
Critical · CVSS 9.4CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.28% · Oct 25, 2026

xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. xmldom parses XML that is not well-formed because it contains multiple top level elements, and adds all root nodes to the `childNodes` collection of the `Document`, without reporting any error or throwing. This breaks the assumption that there is only a single root node in the tree, which led to issuance of CVE-2022-39299 as it is a potential issue for dependents. Update to @xmldom/xmldom@~0.7.7, @xmldom/xmldom@~0.8.4 (dist-tag latest) or @xmldom/xmldom@>=0.9.0-beta.4 (dist-tag next). As a workaround, please one of the following approaches depending on your use case: instead of searching for elements in the whole DOM, only search in the `documentElement`or reject a document with a document that has more then 1 `childNode`.

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-xmldom25.100.9.6-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-xmldomsourcesid0.8.6-1not yet assignedNot reported[1024736]
Debiannode-xmldomsourceforky0.8.6-1not yet assignedNot reported[1024736]
Debiannode-xmldomsourcetrixie0.8.6-1not yet assignedNot reported[1024736]
Debiannode-xmldomsourcebookworm0.8.6-1not yet assignedNot reported[1024736]
Ubuntunode-xmldomdeb20.040.1.27+ds-1+deb10u2build0.20.04.1Not reportedUBUNTU-CVE-2022-39353Not reported
Ubuntunode-xmldomdeb22.040.7.5-1ubuntu0.22.04.1Not reportedUBUNTU-CVE-2022-39353Not reported

[Debian bug #1024736]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [node-xmldom]Unknown
    Details (2)
    • 0.8.6-1 · all · bookworm

      Fixed · Fixed: 0.8.6-1

      dsa · node-xmldom · debian · bookworm

    • 0.8.6-1 · all · bookworm

      Fixed · Fixed: 0.8.6-1

      dsa · node-xmldom · debian · bookworm

Observed:

References