
CVE catalog
CVE-2022-39353
node-xmldom: CVE-2022-39353
- Severity
- Critical · CVSS 9.4
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-xmldom | sid | 0.9.12-1 | fixed |
| Debian | node-xmldom | forky | 0.9.12-1 | fixed |
| Debian | node-xmldom | trixie | 0.9.6-1 | fixed |
| Debian | node-xmldom | bookworm | 0.8.6-1 | fixed |
| Ubuntu | node-xmldom | 20.04 | 0.1.27+ds-1 | vulnerable |
| Ubuntu | node-xmldom | 20.04 | 0.1.27+ds-1+deb10u2build0.20.04.1 | fixed |
| Ubuntu | node-xmldom | 22.04 | 0.5.0-1 | vulnerable |
| Ubuntu | node-xmldom | 22.04 | 0.7.3-1 | vulnerable |
| Ubuntu | node-xmldom | 22.04 | 0.7.5-1 | vulnerable |
| Ubuntu | node-xmldom | 22.04 | 0.7.5-1ubuntu0.22.04.1 | fixed |
| Ubuntu | node-xmldom | 25.10 | 0.9.6-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-xmldom | source | sid | 0.8.6-1 | not yet assigned | Not reported | [1024736] |
| Debian | node-xmldom | source | forky | 0.8.6-1 | not yet assigned | Not reported | [1024736] |
| Debian | node-xmldom | source | trixie | 0.8.6-1 | not yet assigned | Not reported | [1024736] |
| Debian | node-xmldom | source | bookworm | 0.8.6-1 | not yet assigned | Not reported | [1024736] |
| Ubuntu | node-xmldom | deb | 20.04 | 0.1.27+ds-1+deb10u2build0.20.04.1 | Not reported | UBUNTU-CVE-2022-39353 | Not reported |
| Ubuntu | node-xmldom | deb | 22.04 | 0.7.5-1ubuntu0.22.04.1 | Not reported | UBUNTU-CVE-2022-39353 | Not reported |
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 · bookwormFixed · Fixed:
0.8.6-1dsa · node-xmldom · debian · bookworm
0.8.6-1· all · bookwormFixed · Fixed:
0.8.6-1dsa · node-xmldom · debian · bookworm
Observed:
References
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-39353]
- [https://security-tracker.debian.org/tracker/CVE-2022-39353]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-39353.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]