CVE-2022-39353 — xmldom allows multiple root nodes in...
xmldom allows multiple root nodes in a DOM
Summary
Advisory Timeline
- First published November 1, 2022 (1441 days ago).
- Last revised September 10, 2026 — 1408 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install @xmldom/xmldom@0.8.4
npm install @xmldom/xmldom@0.7.7
npm install @xmldom/xmldom@0.9.0-beta.4
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: npm (2).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| @xmldom/xmldom | npm | All versions | 0.8.4 |
| xmldom | npm | All versions | Range-based data available |
| @xmldom/xmldom | npm | All versions | 0.7.7 |
| @xmldom/xmldom | npm | All versions | 0.9.0-beta.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1288
- CWE-20Improper Input ValidationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39353ADVISORY
- https://github.com/jindw/xmldom/issues/150WEB
- https://github.com/xmldom/xmldom/commit/52a708360c35aa160fcca8621720d71fd0f95f1aWEB
- https://github.com/xmldom/xmldom/commit/7ff7c10ab2961703ac1752e95b4ff60ee4ee6643WEB
- https://github.com/xmldom/xmldom/commit/c02f786216bed70825f9a351c65e61500f51e931WEB
- https://github.com/xmldom/xmldomPACKAGE
- https://github.com/xmldom/xmldom/releases/tag/0.7.7WEB
- https://github.com/xmldom/xmldom/releases/tag/0.8.4WEB
- https://github.com/xmldom/xmldom/releases/tag/0.9.0-beta.4WEB
- https://lists.debian.org/debian-lts-announce/2023/01/msg00000.htmlWEB
Frequently Asked Questions
- What is CVE-2022-39353?
- xmldom allows multiple root nodes in a DOM This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2022-39353?
- CVE-2022-39353 affects @xmldom/xmldom and xmldom. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-39353 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107722CRITICAL
fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion
- CVE-2026-108261CRITICAL
TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies