{"schemaVersion":3,"id":"CVE-2022-39353","aliases":["UBUNTU-CVE-2022-39353","DEBIAN-CVE-2022-39353","GHSA-crh6-fp67-6883","CGA-56hw-29mp-fjqx","CGA-ff9v-3q44-wgjj","CGA-vwx3-fj96-4vc8","CGA-x4jc-w726-6r98"],"status":"published","duplicateOf":null,"title":null,"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`.","dates":{"published":"2022-11-02T00:00:00.000Z","modified":"2025-04-22T17:16:38.092Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.4,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":9.4,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","exploitability":10,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01279,"percentile":0.69603,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.006999999999999888,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01272},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01279,"percentile":0.69603}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01272,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01279,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01279,"percentile":0.69603}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_JINDW_XMLDOM","name":"Xmldom","source":"github","url":"https://github.com/jindw/xmldom/issues/150","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-1288","name":"Improper Validation of Consistency within Input","description":"The product receives a complex input with multiple elements or fields that must be consistent with each other, but it does not validate or incorrectly validates that the input is actually consistent.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1288.html"}],"affected":[{"vendor":"chainguard","product":"wazuh-dashboard-security-plugin","name":"wazuh-dashboard-security-plugin","label":"wazuh-dashboard-security-plugin","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/wazuh-dashboard-security-plugin","purlType":"apk","versions":[{"text":"< 4.14.6-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.14.6-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"wazuh-dashboard-security-plugin-fips","name":"wazuh-dashboard-security-plugin-fips","label":"wazuh-dashboard-security-plugin-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/wazuh-dashboard-security-plugin-fips","purlType":"apk","versions":[{"text":"< 4.14.6-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.14.6-r1","eol":null,"hubHref":null},{"vendor":"debian","product":"node-xmldom","name":"node-xmldom","label":"node-xmldom","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-xmldom","purlType":"deb","versions":[{"text":"< 0.8.6-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.8.6-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-xmldom","name":"node-xmldom","label":"node-xmldom","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-xmldom","purlType":"deb","versions":[{"text":"< 0.1.27+ds-1+deb10u2build0.20.04.1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.7.5-1ubuntu0.22.04.1","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"< 0.1.27+ds-1+deb10u2build0.20.04.1 | < 0.7.5-1ubuntu0.22.04.1 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"Npm","product":"xmldom","name":"xmldom","label":"xmldom","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/xmldom","purlType":"npm","versions":[{"text":"≤ 0.6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.6.0","eol":null,"hubHref":null},{"vendor":"@xmldom","product":"xmldom","name":"@xmldom/xmldom","label":"xmldom","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@xmldom/xmldom","purlType":"npm","versions":[{"text":"< 0.7.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.8.0, < 0.8.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.9.0-beta.1, < 0.9.0-beta.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.7 | ≥ 0.8.0, < 0.8.4 | ≥ 0.9.0-beta.1, < 0.9.0-beta.4","eol":null,"hubHref":null},{"vendor":"xmldom_project","product":"xmldom","name":"xmldom","label":"xmldom","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.6.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.7.0, < 0.7.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.8.0, < 0.8.4","noFixRecorded":false,"fixedIn":null},{"text":"0.9.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"0.9.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"0.9.0:beta3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6.0 | ≥ 0.7.0, < 0.7.7 | ≥ 0.8.0, < 0.8.4 | 0.9.0:beta1 | 0.9.0:beta2 | 0.9.0:beta3","eol":null,"hubHref":"/vendor/xmldom_project/xmldom"},{"vendor":"xmldom","product":"xmldom","name":"xmldom","label":"xmldom","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.6.0","noFixRecorded":false,"fixedIn":null},{"text":"< 0.7.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.8.0, < 0.8.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.9.0-beta.1, < 0.9.0-beta.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.6.0 | < 0.7.7 | ≥ 0.8.0, < 0.8.4 | ≥ 0.9.0-beta.1, < 0.9.0-beta.4","eol":null,"hubHref":"/vendor/xmldom/xmldom"}],"affectedCount":9,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883","label":"github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883","hostname":"github.com","tags":["REPORT","WEB","Advisory","Third Party Advisory"]},{"url":"https://github.com/jindw/xmldom/issues/150","label":"github.com/jindw/xmldom/issues/150","hostname":"github.com","tags":["REPORT","WEB","Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html","label":"lists.debian.org/debian-lts-announce/2023/01/msg00000.html","hostname":"lists.debian.org","tags":["Mailing List","WEB","ARTICLE","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-39353","label":"ubuntu.com/security/CVE-2022-39353","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6102-1","label":"ubuntu.com/security/notices/USN-6102-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-39353","label":"www.cve.org/CVERecord?id=CVE-2022-39353","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-39353","label":"security-tracker.debian.org/tracker/CVE-2022-39353","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39353","label":"nvd.nist.gov/vuln/detail/CVE-2022-39353","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://github.com/xmldom/xmldom/commit/52a708360c35aa160fcca8621720d71fd0f95f1a","label":"github.com/xmldom/xmldom/commit/52a708360c35aa160fcca8621720d71fd0f95f1a","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/xmldom/xmldom/commit/7ff7c10ab2961703ac1752e95b4ff60ee4ee6643","label":"github.com/xmldom/xmldom/commit/7ff7c10ab2961703ac1752e95b4ff60ee4ee6643","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/xmldom/xmldom/commit/c02f786216bed70825f9a351c65e61500f51e931","label":"github.com/xmldom/xmldom/commit/c02f786216bed70825f9a351c65e61500f51e931","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/xmldom/xmldom","label":"github.com/xmldom/xmldom","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.7.7","label":"github.com/xmldom/xmldom/releases/tag/0.7.7","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.8.4","label":"github.com/xmldom/xmldom/releases/tag/0.8.4","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.9.0-beta.4","label":"github.com/xmldom/xmldom/releases/tag/0.9.0-beta.4","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39353.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39353.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3260-1","USN-6102-1"],"duplicates":[],"related":["CGA-QQFQ-7945-WX5C","USN-6102-1"]},"timeline":[{"kind":"published","date":"2022-11-02T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-22T17:16:38.092Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T10:10:23.348Z","stale":false,"partial":false}}