CVE-2022-39353 Details
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`.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jindw/xmldom/issues/150 | CVE | ExploitIssue TrackingThird Party Advisory |
| https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883 | CVE | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html | CVE | Mailing ListThird Party Advisory |
| https://github.com/jindw/xmldom/issues/150 | [email protected] | ExploitIssue TrackingThird Party Advisory |
| https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883 | [email protected] | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html | [email protected] | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-1288 | Improper Validation of Consistency within Input | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| xmldom project xmldom | < 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 |
CPE
Remediation
| |
| debian debian linux | 10.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Mar 1, 2023 | Modified Analysis | [email protected] |
| Jan 1, 2023 | CVE Modified | [email protected] |
| Nov 4, 2022 | Initial Analysis | [email protected] |