---
cve: "CVE-2022-39353"
severity: "CRITICAL"
cvss: 9.4
epss: "1.2%"
vendor: "xmldom"
kev: false
exploited: false
published: "2022-11-02 17:15:17"
tags: [cve, security, critical]
source: tsecurity.de CVE-Dossier
exported: "2026-09-15T05:17:21+02:00"
---

# CVE-2022-39353

> 9.4 CRITICAL · 🧪 PoC

## Beschreibung

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`.

## CVSS-Vektor

```
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Gering | warn |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Patch verfügbar (OSV)

- c80a161172cc4d8733583bf0cf59abfa589f6d9e (Commit)
- fe5b043fd07bbfed7f039b77d0b9e1a1eb832a2a (Commit)

## Referenzen

- <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>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2022-39353) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
