CVE-2021-21366
published medium CVSS 3.1 · 4.3Misinterpretation of malicious XML input
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| xmldom | — | xmldom< 0.5.0 | Affected | Not stated | GitHub_M |
| Debian | buster | node-xmldom | Advisory build | 0.1.27+ds-1+deb10u2 | DLA-3260-1 |
| Ubuntu | focal | node-xmldom | Advisory build | 0.1.27+ds-1+deb10u2build0.20.04.1 | USN-6102-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| xmldom | xmldom | < 0.5.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-436 CWE-436 Interpretation Conflict
- CWE-115 CWE-115: Misinterpretation of Input
References
5- https://github.com/xmldom/xmldom/commit/d4201b9dfbf760049f457f9f08a3888d48835135
- https://github.com/xmldom/xmldom/releases/tag/0.5.0
- https://github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv
- [debian-lts-announce] 20230101 [SECURITY] [DLA 3260-1] node-xmldom security update https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html
- https://www.npmjs.com/package/xmldom
Provider assertions
2GitHub_M · cna
Misinterpretation of malicious XML input
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 26168e9d3990c9ff62fefad93c882f7638551c46f96b3789bdb677d0f93c9aa4
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record