{"cve":"CVE-2022-39353","nvd":{"published":"2022-11-02T17:15:17.387","modified":"2026-06-17T04:58:12.050","status":"Modified","description":"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`.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-20","CWE-1288"],"references":["https://github.com/jindw/xmldom/issues/150","https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883","https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html","https://github.com/jindw/xmldom/issues/150","https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883"],"products":["debian:debian_linux","xmldom_project:xmldom"],"source":"nvd","synced_at":"2026-10-19T21:37:08.729216836+00:00"},"epss":{"cve":"CVE-2022-39353","score":0.01597,"percentile":0.75761,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-crh6-fp67-6883","url":"https://osv.dev/vulnerability/GHSA-crh6-fp67-6883","summary":"xmldom allows multiple root nodes in a DOM","modified":"2026-09-10T03:49:47.098960256Z","packages":[{"ecosystem":"npm","name":"xmldom","purl":"pkg:npm/xmldom","ranges":["<=0.6.0"],"fixed":[]},{"ecosystem":"npm","name":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","ranges":["<0.7.7"],"fixed":["0.7.7"]},{"ecosystem":"npm","name":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","ranges":[">=0.8.0 <0.8.4"],"fixed":["0.8.4"]},{"ecosystem":"npm","name":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","ranges":[">=0.9.0-beta.1 <0.9.0-beta.4"],"fixed":["0.9.0-beta.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}