
CVE catalog
CVE-2021-21366
node-xmldom: CVE-2021-21366
- Severity
- Medium · CVSS 4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.34% · Oct 25, 2026
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. xmldom versions 0.4.0 and older do not correctly preserve system identifiers, FPIs or namespaces when repeatedly parsing and serializing maliciously crafted documents. This may lead to unexpected syntactic changes during XML processing in some downstream applications. This is fixed in version 0.5.0. As a workaround downstream applications can validate the input and reject the maliciously crafted documents.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-xmldom | sid | 0.9.12-1 | fixed |
| Debian | node-xmldom | forky | 0.9.12-1 | fixed |
| Debian | node-xmldom | trixie | 0.9.6-1 | fixed |
| Debian | node-xmldom | bookworm | 0.8.6-1 | fixed |
| Ubuntu | node-xmldom | 20.04 | 0.1.27+ds-1 | vulnerable |
| Ubuntu | node-xmldom | 20.04 | 0.1.27+ds-1+deb10u2build0.20.04.1 | fixed |
| Ubuntu | node-xmldom | 22.04 | 0.5.0-1 | vulnerable |
| Ubuntu | node-xmldom | 22.04 | 0.7.3-1 | vulnerable |
| Ubuntu | node-xmldom | 22.04 | 0.7.5-1 | vulnerable |
| Ubuntu | node-xmldom | 22.04 | 0.7.5-1ubuntu0.22.04.1 | fixed |
| Ubuntu | node-xmldom | 20.04 | 0.1.27+ds-1 | vulnerable |
| Ubuntu | node-xmldom | 20.04 | 0.1.27+ds-1+deb10u2build0.20.04.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-xmldom | source | sid | 0.5.0-1 | not yet assigned | Not reported | Not reported |
| Debian | node-xmldom | source | forky | 0.5.0-1 | not yet assigned | Not reported | Not reported |
| Debian | node-xmldom | source | trixie | 0.5.0-1 | not yet assigned | Not reported | Not reported |
| Debian | node-xmldom | source | bookworm | 0.5.0-1 | not yet assigned | Not reported | Not reported |
| Ubuntu | node-xmldom | deb | 20.04 | 0.1.27+ds-1+deb10u2build0.20.04.1 | Not reported | USN-6102-1 | Not reported |
| Ubuntu | node-xmldom | deb | 22.04 | 0.7.5-1ubuntu0.22.04.1 | Not reported | USN-6102-1 | Not reported |
| Ubuntu | node-xmldom | deb | 20.04 | 0.1.27+ds-1+deb10u2build0.20.04.1 | Not reported | UBUNTU-CVE-2021-21366 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-xmldom]Fixed
Details (2)
0.8.6-1· all · bookwormFixed · Fixed:
0.5.0-1dsa · node-xmldom · debian · bookworm; dsa · node-xmldom · debian · 12
0.8.6-1· all · bookwormFixed · Fixed:
0.5.0-1dsa · node-xmldom · debian · bookworm; dsa · node-xmldom · debian · 12
[Debian 13 (Trixie)]
- [node-xmldom]Fixed
Details (2)
0.9.6-1· all · trixieFixed · Fixed:
0.5.0-1dsa · node-xmldom · debian · 13
0.9.6-1· all · trixieFixed · Fixed:
0.5.0-1dsa · node-xmldom · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-21366]
- [https://osv.dev/vulnerability/DLA-3260-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-21366]
- [https://osv.dev/vulnerability/USN-6102-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-21366]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-21366.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]