Loading advisory.
Loading advisory.
xmldom allows multiple root nodes in a DOM
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.
Published 2022-11-01 17:29 UTC · Modified 2026-09-10 03:49 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| xmldom | npm | <= 0.6.0 | No patch yet | No command until a fix exists. |
| @xmldom/xmldom | npm | < 0.7.7 >= 0.8.0, < 0.8.4 >= 0.9.0-beta.1, < 0.9.0-beta.4 | 0.7.7, 0.8.4, 0.9.0-beta.4 | npm install @xmldom/xmldom@0.7.7npm install @xmldom/xmldom@0.8.4npm install @xmldom/xmldom@0.9.0-beta.4 |
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 https://nvd.nist.gov/vuln/detail/CVE-2022-39299 and 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).
One of the following approaches might help, depending on your use case:
Instead of searching for elements in the whole DOM, only search in the documentElement.
Reject a document with a document that has more then 1 childNode.
https://nvd.nist.gov/vuln/detail/CVE-2022-39299
https://github.com/jindw/xmldom/issues/150
If you have any questions or comments about this advisory:
Email us at security@xmldom.org
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.016 on 2026-11-24 to 0.017 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.016 | first score | v2026.06.15 |
| 2026-11-26 | 0.017 | 0.016 | v2026.06.15 |