CVE-2021-21366
Misinterpretation of malicious XML input
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.
No summary for this CVE yet.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:LAttack ComplexityLow
PR:NPrivileges RequiredNone
UI:RUser InteractionRequired
Scope
S:UScopeUnchanged
Impact
C:NConfidentialityNone
I:LIntegrityLow
A:NAvailabilityNone
Weaknesses
Affected Products
xmldom
oss-project
xmldomLibrary
OSS Libraries / npmnpm
package-ecosystem
xmldom project
package-ecosystemaka xmldom
xmldomLibrary
OSS Libraries / npmdebian
oss-project·GBaka debian gnu/linux
Exploitability
Official Patch Available
References
https://github.com/xmldom/xmldom/security/advisories/GHSA-h6q6-9hqw-rwfv
github.com
https://www.npmjs.com/package/xmldom
npmjs.com
https://github.com/xmldom/xmldom/releases/tag/0.5.0
github.com
and 4 more references View all →
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2021-21366 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows
