{"api_version":"1","generated_at":"2026-04-23T18:58:12+00:00","cve":"CVE-2022-39353","urls":{"html":"https://cve.report/CVE-2022-39353","api":"https://cve.report/api/cve/CVE-2022-39353.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-39353","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-39353"},"summary":{"title":"CVE-2022-39353","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`.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-11-02 17:15:00","updated_at":"2023-03-01 14:03:00"},"problem_types":["CWE-20","CWE-1288"],"metrics":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html","name":"[debian-lts-announce] 20230101 [SECURITY] [DLA 3260-1] node-xmldom security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3260-1] node-xmldom security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/jindw/xmldom/issues/150","name":"https://github.com/jindw/xmldom/issues/150","refsource":"MISC","tags":[],"title":"Missing error for XML documents with multiple root element nodes · Issue #150 · jindw/xmldom · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883","name":"https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883","refsource":"CONFIRM","tags":[],"title":"Allows multiple root elements in a DOM tree · Advisory · xmldom/xmldom · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-39353","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39353","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"39353","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"39353","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"xmldom_project","cpe5":"xmldom","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"39353","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"xmldom_project","cpe5":"xmldom","cpe6":"0.9.0","cpe7":"beta1","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"39353","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"xmldom_project","cpe5":"xmldom","cpe6":"0.9.0","cpe7":"beta2","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"39353","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"xmldom_project","cpe5":"xmldom","cpe6":"0.9.0","cpe7":"beta3","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-39353","qid":"181402","title":"Debian Security Update for node-xmldom (CVE-2022-39353)"},{"cve":"CVE-2022-39353","qid":"181457","title":"Debian Security Update for node-xmldom (DLA 3260-1)"},{"cve":"CVE-2022-39353","qid":"199362","title":"Ubuntu Security Notification for xmldom Vulnerabilities (USN-6102-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-39353","STATE":"PUBLIC","TITLE":"xmldom allows multiple root nodes in a DOM"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"xmldom","version":{"version_data":[{"version_value":"<= 0.6.0"},{"version_value":"< 0.7.7"},{"version_value":">= 0.8.0, < 0.8.4"},{"version_value":">= 0.9.0-beta.1, < 0.9.0-beta.4"}]}}]},"vendor_name":"xmldom"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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`."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.4,"baseSeverity":"CRITICAL","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-20: Improper Input Validation"}]},{"description":[{"lang":"eng","value":"CWE-1288: Improper Validation of Consistency within Input"}]}]},"references":{"reference_data":[{"name":"https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883","refsource":"CONFIRM","url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883"},{"name":"https://github.com/jindw/xmldom/issues/150","refsource":"MISC","url":"https://github.com/jindw/xmldom/issues/150"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230101 [SECURITY] [DLA 3260-1] node-xmldom security update","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html"}]},"source":{"advisory":"GHSA-crh6-fp67-6883","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-11-02 17:15:00","lastModifiedDate":"2023-03-01 14:03:00","problem_types":["CWE-20","CWE-1288"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:xmldom_project:xmldom:0.9.0:beta1:*:*:*:node.js:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:xmldom_project:xmldom:*:*:*:*:*:node.js:*:*","versionEndExcluding":"0.6.0","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:xmldom_project:xmldom:*:*:*:*:*:node.js:*:*","versionStartIncluding":"0.8.0","versionEndExcluding":"0.8.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:xmldom_project:xmldom:0.9.0:beta2:*:*:*:node.js:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:xmldom_project:xmldom:0.9.0:beta3:*:*:*:node.js:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:xmldom_project:xmldom:*:*:*:*:*:node.js:*:*","versionStartIncluding":"0.7.0","versionEndExcluding":"0.7.7","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}