{"id":"CVE-2022-39353","aliases":["AZL-38671","DEBIAN-CVE-2022-39353","GHSA-crh6-fp67-6883","UBUNTU-CVE-2022-39353"],"summary":"xmldom allows multiple root nodes in a DOM","published_at":"2022-11-01T17:29:11Z","modified_at":"2026-11-18T06:02:58.114212Z","products":[],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.015589999966323376,"percentile":0.7575299739837646,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"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`.","affected_stack":[],"affected_other":[{"ecosystem":"Azure Linux:3","package":"python-tensorboard","purl":"pkg:rpm/azure-linux/python-tensorboard","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.2-1"}]}],"fixed":["2.16.2-1"],"provider":"osv","source":"AZL-38671","relation":"self"},{"ecosystem":"CVE","package":"xmldom/xmldom","versions":["<= 0.6.0","< 0.7.7",">= 0.8.0, < 0.8.4",">= 0.9.0-beta.1, < 0.9.0-beta.4"],"provider":"cvelistv5","source":"CVE-2022-39353","relation":"self"},{"ecosystem":"Debian:10","package":"node-xmldom","purl":"pkg:deb/debian/node-xmldom?arch=source&distro=buster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.27+ds-1+deb10u2"}]}],"versions":["0.1.27+ds-1","0.1.27+ds-1+deb10u1"],"fixed":["0.1.27+ds-1+deb10u2"],"provider":"osv","source":"DLA-3260-1","relation":"upstream"},{"ecosystem":"Debian:12","package":"node-xmldom","purl":"pkg:deb/debian/node-xmldom?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.6-1"}]}],"fixed":["0.8.6-1"],"provider":"osv","source":"DEBIAN-CVE-2022-39353","relation":"self"},{"ecosystem":"Debian:13","package":"node-xmldom","purl":"pkg:deb/debian/node-xmldom?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.6-1"}]}],"fixed":["0.8.6-1"],"provider":"osv","source":"DEBIAN-CVE-2022-39353","relation":"self"},{"ecosystem":"Debian:14","package":"node-xmldom","purl":"pkg:deb/debian/node-xmldom?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.6-1"}]}],"fixed":["0.8.6-1"],"provider":"osv","source":"DEBIAN-CVE-2022-39353","relation":"self"},{"ecosystem":"NVD","package":"debian:debian_linux","versions":["10.0"],"provider":"nvd","source":"CVE-2022-39353","relation":"self"},{"ecosystem":"NVD","package":"xmldom_project:xmldom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.0"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0.7.0"},{"fixed":"0.7.7"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0.8.0"},{"fixed":"0.8.4"}]}],"fixed":["0.6.0","0.7.7","0.8.4"],"provider":"nvd","source":"CVE-2022-39353","relation":"self"},{"ecosystem":"TuxCare:npm","package":"xmldom","purl":"pkg:npm/xmldom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.31-tuxcare.0"},{"fixed":"0.1.31-tuxcare.8"}]}],"versions":["0.1.31","0.1.31-tuxcare.1","0.1.31-tuxcare.2","0.1.31-tuxcare.3","0.1.31-tuxcare.4","0.1.31-tuxcare.5","0.1.31-tuxcare.6","0.1.31-tuxcare.7"],"fixed":["0.1.31-tuxcare.8"],"provider":"osv","source":"CLSA-2026-1793867503","relation":"upstream"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-xmldom","purl":"pkg:deb/ubuntu/node-xmldom?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.27+ds-1+deb10u2build0.20.04.1"}]}],"versions":["0.1.27+ds-1"],"fixed":["0.1.27+ds-1+deb10u2build0.20.04.1"],"provider":"osv","source":"UBUNTU-CVE-2022-39353","relation":"self"},{"ecosystem":"Ubuntu:20.04:LTS","package":"node-xmldom","purl":"pkg:deb/ubuntu/node-xmldom@0.1.27+ds-1+deb10u2build0.20.04.1?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.27+ds-1+deb10u2build0.20.04.1"}]}],"versions":["0.1.27+ds-1"],"fixed":["0.1.27+ds-1+deb10u2build0.20.04.1"],"provider":"osv","source":"USN-6102-1","relation":"upstream"},{"ecosystem":"Ubuntu:22.04:LTS","package":"node-xmldom","purl":"pkg:deb/ubuntu/node-xmldom?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.5-1ubuntu0.22.04.1"}]}],"versions":["0.5.0-1","0.7.3-1","0.7.5-1"],"fixed":["0.7.5-1ubuntu0.22.04.1"],"provider":"osv","source":"UBUNTU-CVE-2022-39353","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"node-xmldom","purl":"pkg:deb/ubuntu/node-xmldom@0.7.5-1ubuntu0.22.04.1?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.5-1ubuntu0.22.04.1"}]}],"versions":["0.5.0-1","0.7.3-1","0.7.5-1"],"fixed":["0.7.5-1ubuntu0.22.04.1"],"provider":"osv","source":"USN-6102-1","relation":"upstream"},{"ecosystem":"Ubuntu:25.10","package":"node-xmldom","purl":"pkg:deb/ubuntu/node-xmldom?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.6-1"],"provider":"osv","source":"UBUNTU-CVE-2022-39353","relation":"self"},{"ecosystem":"npm","package":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","ranges":[{"type":"SEMVER","events":[{"introduced":"0.9.0-beta.1"},{"fixed":"0.9.0-beta.4"}]}],"fixed":["0.9.0-beta.4"],"provider":"osv","source":"GHSA-crh6-fp67-6883","relation":"self"},{"ecosystem":"npm","package":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","ranges":[{"type":"SEMVER","events":[{"introduced":"0.8.0"},{"fixed":"0.8.4"}]}],"fixed":["0.8.4"],"provider":"osv","source":"GHSA-crh6-fp67-6883","relation":"self"},{"ecosystem":"npm","package":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.7"}]}],"fixed":["0.7.7"],"provider":"osv","source":"GHSA-crh6-fp67-6883","relation":"self"},{"ecosystem":"npm","package":"xmldom","purl":"pkg:npm/xmldom","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.6.0"}]}],"provider":"osv","source":"GHSA-crh6-fp67-6883","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 3.11","cpe":"cpe:/a:redhat:openshift:3.11","status":"not_affected","packages":["openshift3/ose-console"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-39353"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift4/ose-console"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-39353"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1793867503","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1793867503","published_at":"2026-11-05T09:31:44Z","modified_at":"2026-11-05T13:15:12.637346Z","summary":"TuxCare security update for xmldom (2 CVEs)","details":"TuxCare rebuilt xmldom to address 2 CVEs. Fixed in 0.1.31-tuxcare.8.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"xmldom","purl":"pkg:npm/xmldom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.31-tuxcare.0"},{"fixed":"0.1.31-tuxcare.8"}]}],"versions":["0.1.31","0.1.31-tuxcare.1","0.1.31-tuxcare.2","0.1.31-tuxcare.3","0.1.31-tuxcare.4","0.1.31-tuxcare.5","0.1.31-tuxcare.6","0.1.31-tuxcare.7"],"fixed":["0.1.31-tuxcare.8"],"provider":"osv","source":"CLSA-2026-1793867503","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DLA-3260-1","relation":"upstream","url":"https://osv.dev/vulnerability/DLA-3260-1","published_at":"2023-01-01T00:00:00Z","modified_at":"2026-11-20T01:18:53.623581Z","summary":"node-xmldom - security update","severity":[],"affected":[{"ecosystem":"Debian:10","package":"node-xmldom","purl":"pkg:deb/debian/node-xmldom?arch=source&distro=buster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.27+ds-1+deb10u2"}]}],"versions":["0.1.27+ds-1","0.1.27+ds-1+deb10u1"],"fixed":["0.1.27+ds-1+deb10u2"],"provider":"osv","source":"DLA-3260-1","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"USN-6102-1","relation":"upstream","url":"https://osv.dev/vulnerability/USN-6102-1","license":"CC-BY-SA-4.0","published_at":"2023-05-24T09:57:50Z","modified_at":"2026-04-27T16:47:15.408905Z","summary":"node-xmldom vulnerabilities","details":"It was discovered that xmldom incorrectly handled certain inputs. If a\nuser or an automated system were tricked into opening a specially crafted\ninput file, a remote attacker could possibly use this issue to cause \nunexpected syntactic changes during XML processing. This issue only affected\nUbuntu 20.04 LTS. (CVE-2021-21366)\n\nIt was discovered that xmldom incorrectly handled certain inputs. If a\nuser or an automated system were tricked into opening a specially crafted\ninput file, a remote attacker could possibly use this issue to cause a\ndenial of service. (CVE-2022-37616, CVE-2022-39353)","severity":[],"affected":[{"ecosystem":"Ubuntu:20.04:LTS","package":"node-xmldom","purl":"pkg:deb/ubuntu/node-xmldom@0.1.27+ds-1+deb10u2build0.20.04.1?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.27+ds-1+deb10u2build0.20.04.1"}]}],"versions":["0.1.27+ds-1"],"fixed":["0.1.27+ds-1+deb10u2build0.20.04.1"],"provider":"osv","source":"USN-6102-1","relation":"upstream"},{"ecosystem":"Ubuntu:22.04:LTS","package":"node-xmldom","purl":"pkg:deb/ubuntu/node-xmldom@0.7.5-1ubuntu0.22.04.1?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.5-1ubuntu0.22.04.1"}]}],"versions":["0.5.0-1","0.7.3-1","0.7.5-1"],"fixed":["0.7.5-1ubuntu0.22.04.1"],"provider":"osv","source":"USN-6102-1","relation":"upstream"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6102-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-21366"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-37616"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-39353"}]},{"provider":"cvelistv5","source_id":"CVE-2022-39353","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-39353","license":"CC-BY-4.0","published_at":"2022-11-02T00:00:00Z","modified_at":"2025-04-22T17:16:38.092Z","summary":"xmldom allows multiple root nodes in a DOM","details":"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`.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","source":"CVE-2022-39353"}],"affected":[{"ecosystem":"CVE","package":"xmldom/xmldom","versions":["<= 0.6.0","< 0.7.7",">= 0.8.0, < 0.8.4",">= 0.9.0-beta.1, < 0.9.0-beta.4"],"provider":"cvelistv5","source":"CVE-2022-39353","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883"},{"type":"WEB","url":"https://github.com/jindw/xmldom/issues/150"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html"}]},{"provider":"nvd","source_id":"CVE-2022-39353","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39353","severity":[],"affected":[{"ecosystem":"NVD","package":"debian:debian_linux","versions":["10.0"],"provider":"nvd","source":"CVE-2022-39353","relation":"self"},{"ecosystem":"NVD","package":"xmldom_project:xmldom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.0"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0.7.0"},{"fixed":"0.7.7"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0.8.0"},{"fixed":"0.8.4"}]}],"fixed":["0.6.0","0.7.7","0.8.4"],"provider":"nvd","source":"CVE-2022-39353","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"AZL-38671","relation":"self","url":"https://osv.dev/vulnerability/AZL-38671","license":"MIT","published_at":"2022-11-02T17:15:17Z","modified_at":"2026-04-21T04:52:36.881677Z","summary":"CVE-2022-39353 affecting package python-tensorboard for versions less than 2.16.2-1","details":"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`.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"AZL-38671"}],"affected":[{"ecosystem":"Azure Linux:3","package":"python-tensorboard","purl":"pkg:rpm/azure-linux/python-tensorboard","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.16.2-1"}]}],"fixed":["2.16.2-1"],"provider":"osv","source":"AZL-38671","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39353"}]},{"provider":"osv","source_id":"DEBIAN-CVE-2022-39353","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2022-39353","published_at":"2022-11-02T17:15:17.387Z","modified_at":"2026-11-18T06:02:58.114212Z","details":"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`.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"DEBIAN-CVE-2022-39353"}],"affected":[{"ecosystem":"Debian:12","package":"node-xmldom","purl":"pkg:deb/debian/node-xmldom?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.6-1"}]}],"fixed":["0.8.6-1"],"provider":"osv","source":"DEBIAN-CVE-2022-39353","relation":"self"},{"ecosystem":"Debian:13","package":"node-xmldom","purl":"pkg:deb/debian/node-xmldom?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.6-1"}]}],"fixed":["0.8.6-1"],"provider":"osv","source":"DEBIAN-CVE-2022-39353","relation":"self"},{"ecosystem":"Debian:14","package":"node-xmldom","purl":"pkg:deb/debian/node-xmldom?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.6-1"}]}],"fixed":["0.8.6-1"],"provider":"osv","source":"DEBIAN-CVE-2022-39353","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-39353"}]},{"provider":"osv","source_id":"GHSA-crh6-fp67-6883","relation":"self","url":"https://osv.dev/vulnerability/GHSA-crh6-fp67-6883","license":"CC-BY-4.0","published_at":"2022-11-01T17:29:11Z","modified_at":"2026-09-10T03:49:47.09896Z","summary":"xmldom allows multiple root nodes in a DOM","details":"### Impact\nxmldom 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.\nThis breaks the assumption that there is only a single root node in the tree, which led to https://nvd.nist.gov/vuln/detail/CVE-2022-39299 and is a potential issue for dependents.\n\n### Patches\nUpdate 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`).\n\n### Workarounds\nOne of the following approaches might help, depending on your use case:\n- Instead of searching for elements in the whole DOM, only search in the `documentElement`.\n- Reject a document with a document that has more then 1 `childNode`.\n\n### References\n- https://nvd.nist.gov/vuln/detail/CVE-2022-39299\n- https://github.com/jindw/xmldom/issues/150\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at security@xmldom.org","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-crh6-fp67-6883"}],"affected":[{"ecosystem":"npm","package":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","ranges":[{"type":"SEMVER","events":[{"introduced":"0.9.0-beta.1"},{"fixed":"0.9.0-beta.4"}]}],"fixed":["0.9.0-beta.4"],"provider":"osv","source":"GHSA-crh6-fp67-6883","relation":"self"},{"ecosystem":"npm","package":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","ranges":[{"type":"SEMVER","events":[{"introduced":"0.8.0"},{"fixed":"0.8.4"}]}],"fixed":["0.8.4"],"provider":"osv","source":"GHSA-crh6-fp67-6883","relation":"self"},{"ecosystem":"npm","package":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.7"}]}],"fixed":["0.7.7"],"provider":"osv","source":"GHSA-crh6-fp67-6883","relation":"self"},{"ecosystem":"npm","package":"xmldom","purl":"pkg:npm/xmldom","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.6.0"}]}],"provider":"osv","source":"GHSA-crh6-fp67-6883","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39353"},{"type":"WEB","url":"https://github.com/jindw/xmldom/issues/150"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/commit/52a708360c35aa160fcca8621720d71fd0f95f1a"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/commit/7ff7c10ab2961703ac1752e95b4ff60ee4ee6643"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/commit/c02f786216bed70825f9a351c65e61500f51e931"},{"type":"PACKAGE","url":"https://github.com/xmldom/xmldom"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/releases/tag/0.7.7"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/releases/tag/0.8.4"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/releases/tag/0.9.0-beta.4"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2022-39353","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2022-39353","license":"CC-BY-SA-4.0","published_at":"2022-11-02T17:15:00Z","modified_at":"2026-10-25T23:30:04.089515Z","details":"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`.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","source":"UBUNTU-CVE-2022-39353"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"UBUNTU-CVE-2022-39353"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2022-39353"}],"affected":[{"ecosystem":"Ubuntu:20.04:LTS","package":"node-xmldom","purl":"pkg:deb/ubuntu/node-xmldom?arch=source&distro=focal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.27+ds-1+deb10u2build0.20.04.1"}]}],"versions":["0.1.27+ds-1"],"fixed":["0.1.27+ds-1+deb10u2build0.20.04.1"],"provider":"osv","source":"UBUNTU-CVE-2022-39353","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"node-xmldom","purl":"pkg:deb/ubuntu/node-xmldom?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.5-1ubuntu0.22.04.1"}]}],"versions":["0.5.0-1","0.7.3-1","0.7.5-1"],"fixed":["0.7.5-1ubuntu0.22.04.1"],"provider":"osv","source":"UBUNTU-CVE-2022-39353","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"node-xmldom","purl":"pkg:deb/ubuntu/node-xmldom?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.6-1"],"provider":"osv","source":"UBUNTU-CVE-2022-39353","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-39353"},{"type":"REPORT","url":"https://github.com/jindw/xmldom/issues/150"},{"type":"REPORT","url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6102-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-39353"}]},{"provider":"redhat-vex","source_id":"CVE-2022-39353","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-39353","license":"CC-BY-4.0","published_at":"2022-11-02T00:00:00Z","modified_at":"2023-07-07T08:28:24Z","summary":"xmldom: Allows multiple root elements in a DOM tree","details":"A flaw was found in the xmldom package. The xmldom parses XML that is not well-formed because it contains multiple top-level elements, adding all root nodes to the `childNodes` collection of the `Document` without reporting errors or throwing. This breaks the assumption that there is only a single root node in the tree, which led to CVE-2022-39299, as it is a potential issue for dependents.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","source":"CVE-2022-39353"},{"type":"Red Hat","score":"Important","source":"CVE-2022-39353"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 3.11","cpe":"cpe:/a:redhat:openshift:3.11","status":"not_affected","packages":["openshift3/ose-console"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-39353"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["openshift4/ose-console"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-39353"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-39353.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-39353"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2142450"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-39353"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39353"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883"}]}],"references":[{"type":"WEB","url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883"},{"type":"WEB","url":"https://github.com/jindw/xmldom/issues/150"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39353"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-39353"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/commit/52a708360c35aa160fcca8621720d71fd0f95f1a"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/commit/7ff7c10ab2961703ac1752e95b4ff60ee4ee6643"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/commit/c02f786216bed70825f9a351c65e61500f51e931"},{"type":"PACKAGE","url":"https://github.com/xmldom/xmldom"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/releases/tag/0.7.7"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/releases/tag/0.8.4"},{"type":"WEB","url":"https://github.com/xmldom/xmldom/releases/tag/0.9.0-beta.4"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-39353"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6102-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-39353"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-39353.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-39353"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2142450"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1793867503","url":"https://osv.dev/vulnerability/CLSA-2026-1793867503","modified_at":"2026-11-05T13:15:12.637346Z","relation":"upstream"},{"provider":"osv","source_id":"DLA-3260-1","url":"https://osv.dev/vulnerability/DLA-3260-1","modified_at":"2026-11-20T01:18:53.623581Z","relation":"upstream"},{"provider":"osv","source_id":"USN-6102-1","url":"https://osv.dev/vulnerability/USN-6102-1","license":"CC-BY-SA-4.0","modified_at":"2026-04-27T16:47:15.408905Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2022-39353","url":"https://www.cve.org/CVERecord?id=CVE-2022-39353","license":"CC-BY-4.0","modified_at":"2025-04-22T17:16:38.092Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-39353","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39353","relation":"self"},{"provider":"osv","source_id":"AZL-38671","url":"https://osv.dev/vulnerability/AZL-38671","license":"MIT","modified_at":"2026-04-21T04:52:36.881677Z","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2022-39353","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2022-39353","modified_at":"2026-11-18T06:02:58.114212Z","relation":"self"},{"provider":"osv","source_id":"GHSA-crh6-fp67-6883","url":"https://osv.dev/vulnerability/GHSA-crh6-fp67-6883","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:47.09896Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2022-39353","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2022-39353","license":"CC-BY-SA-4.0","modified_at":"2026-10-25T23:30:04.089515Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-39353","url":"https://access.redhat.com/security/cve/CVE-2022-39353","license":"CC-BY-4.0","modified_at":"2023-07-07T08:28:24Z","relation":"self"}]}
