{"id":"EUVD-2022-7316","revision":null,"records":[{"revision":"caf23134f5f643d8a31419d4c1b4512b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2022-39353","aliases":[],"title":"xmldom allows multiple root nodes in a DOM","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":0,"publishedAt":"2022-11-02T00:00:00+00:00","modifiedAt":"2025-04-22T17:16:38.092+00:00","affected":[{"ecosystem":"Vendor product","name":"xmldom","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"xmldom\",\n                    \"product\": \"xmldom\",\n                    \"versions\": [\n                        {\n                            \"version\": \"<= 0.6.0\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"< 0.7.7\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 0.8.0, < 0.8.4\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 0.9.0-beta.1, < 0.9.0-beta.4\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","score":9.4,"severity":"CRITICAL"}],"references":["https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883","https://github.com/jindw/xmldom/issues/150","https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-39353","license":"CVE Program Terms of Use","key":"cve-program:CVE-2022-39353","identifiers":["CVE-2022-39353"]},"retained":false,"historicalAffected":[]},{"revision":"6aaa97e1404243cd8f25ead33bdb8779","observedAt":"2026-11-18T07:30:51.543+00:00","statement":{"source":"euvd","id":"EUVD-2022-7316","aliases":["CVE-2022-39353","GHSA-crh6-fp67-6883"],"title":"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 `childNo…","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":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","score":9.4,"severity":null}],"references":["https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883","https://github.com/jindw/xmldom/issues/150","https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-7316","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Nov 2, 2022, 12:00:00 AM","dateUpdated":"Apr 22, 2025, 5:16:38 PM"},"relatedAdvisories":[{"id":"msrc_CVE-2022-39353","title":"xmldom allows multiple root nodes in a DOM","vulnerabilityIds":["CVE-2022-39353"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2022-7316","identifiers":["EUVD-2022-7316","CVE-2022-39353","GHSA-crh6-fp67-6883"]},"retained":false,"historicalAffected":[]},{"revision":"7ab48dedf30c4f8cae3b7dbed32e4b5c","observedAt":"2026-10-24T21:17:10.699+00:00","statement":{"source":"nvd","id":"CVE-2022-39353","aliases":[],"title":"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 `childNo…","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":0,"publishedAt":"2022-11-02T17:15:17.387+00:00","modifiedAt":"2026-06-17T04:58:12.05+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","score":9.4,"severity":"CRITICAL"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"}],"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"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-39353","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-20","CWE-1288"],"productCriteria":["cpe:2.3:a:xmldom_project:xmldom:*:*:*:*:*:node.js:*:*","cpe:2.3:a:xmldom_project:xmldom:0.9.0:beta1:*:*:*:node.js:*:*","cpe:2.3:a:xmldom_project:xmldom:0.9.0:beta2:*:*:*:node.js:*:*","cpe:2.3:a:xmldom_project:xmldom:0.9.0:beta3:*:*:*:node.js:*:*","cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"],"sourceDates":{"published":"2022-11-02T17:15:17.387","lastModified":"2026-06-17T04:58:12.050"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2022-39353","identifiers":["CVE-2022-39353"]},"retained":false,"historicalAffected":[]},{"revision":"b59bc5b38e6b4e86b4fa05cb42359fc8","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-crh6-fp67-6883","aliases":["CVE-2022-39353"],"title":"xmldom allows multiple root nodes in a DOM","description":"### 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\n","state":0,"publishedAt":"2022-11-01T17:29:11+00:00","modifiedAt":"2026-09-10T03:49:47.0989603+00:00","affected":[{"ecosystem":"npm","name":"xmldom","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"0.6.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@xmldom/xmldom","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.7.7"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@xmldom/xmldom","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.8.0"},{"kind":"fixed","version":"0.8.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@xmldom/xmldom","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.9.0-beta.1"},{"kind":"fixed","version":"0.9.0-beta.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883","https://nvd.nist.gov/vuln/detail/CVE-2022-39353","https://github.com/jindw/xmldom/issues/150","https://github.com/xmldom/xmldom/commit/52a708360c35aa160fcca8621720d71fd0f95f1a","https://github.com/xmldom/xmldom/commit/7ff7c10ab2961703ac1752e95b4ff60ee4ee6643","https://github.com/xmldom/xmldom/commit/c02f786216bed70825f9a351c65e61500f51e931","https://github.com/xmldom/xmldom","https://github.com/xmldom/xmldom/releases/tag/0.7.7","https://github.com/xmldom/xmldom/releases/tag/0.8.4","https://github.com/xmldom/xmldom/releases/tag/0.9.0-beta.4","https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html"],"sourceUrl":"https://github.com/advisories/GHSA-crh6-fp67-6883","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-crh6-fp67-6883","identifiers":["GHSA-crh6-fp67-6883","CVE-2022-39353"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T05:22:48.4383343+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5819004+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.581904+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-a3c5d1f50b99987b637138fdc7cd9e1e0d772b1c81dbbff4bcc8be865c192a98","complete":true,"records":428232,"lastAttemptAt":"2026-11-19T05:22:47.9486287+00:00","lastSuccessAt":"2026-11-19T05:22:47.9265788+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:47.9486287+00:00","snapshotPublishedAt":"2026-11-19T04:33:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-7c1103063ba0426d8e585240e558964c","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T05:32:28.4240909+00:00","lastSuccessAt":"2026-11-19T05:32:27.403+00:00","error":"218 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T05:32:27.403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13568,"expectedIdentifiers":13908,"failedIdentifiers":218},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T05:22:48.4383343+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5827402+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.5827403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-84b4b212d7ef41cb9ec24b71e9d8e5d8","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T05:22:49.1394496+00:00","lastSuccessAt":"2026-11-19T04:24:39.391+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:39.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T05:22:48.2819697+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.2819697+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T05:22:48.0028407+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.0028407+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-c0d9c71c6fa06d617f979e7bec0d97aca70ca5aea1558184002f8e44516f2fac","complete":true,"records":3177,"lastAttemptAt":"2026-11-19T05:22:48.391557+00:00","lastSuccessAt":"2026-11-18T21:25:09.5127964+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.391557+00:00","snapshotPublishedAt":"2026-11-18T21:18:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2556fa291ec863b7fd77332e55dcff5569878e06b48ea32c182e52878cdd1ce8","complete":true,"records":232702,"lastAttemptAt":"2026-11-19T05:22:48.1723185+00:00","lastSuccessAt":"2026-11-19T04:24:35.8955272+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.1723185+00:00","snapshotPublishedAt":"2026-11-19T03:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}