CVE-2026-83608
8.7DOM · xmldom
The xmldom library fails to properly sanitize DocumentType.name, allowing unauthenticated attackers to inject arbitrary XML markup via crafted DOCTYPE declarations.
Executive summary
A high-severity XML injection vulnerability in the xmldom library permits unauthenticated attackers to manipulate document structures, posing a risk of data integrity compromise.
Vulnerability
This is an XML injection flaw (CWE-91) where the library fails to enforce XML name constraints on the DocumentType.name property. An unauthenticated attacker can supply crafted input containing whitespace or angle brackets to terminate the DOCTYPE declaration prematurely and inject malicious sibling markup.
Business impact
Successful exploitation allows an attacker to alter the structure of processed XML documents, which can lead to significant data integrity issues. Given the CVSS score of 8.7, this vulnerability is categorized as high risk, as it permits unauthorized modification of data without requiring any user interaction or prior authentication.
Remediation
Immediate Action: Update the @xmldom/xmldom package to version 0.8.15 or 0.9.12 immediately. If using the legacy xmldom package, which lacks a fix, you must migrate to the @xmldom/xmldom scoped package or implement custom input validation to sanitize DOCTYPE names.
Proactive Monitoring: Review application logs for unexpected characters or structural anomalies within XML parsing routines. Monitor for service requests that involve unusual DOCTYPE declarations.
Compensating Controls: Deploy a Web Application Firewall (WAF) configured to inspect and block inbound requests containing suspicious XML entity or DOCTYPE definitions.
Exploitation status
Public Exploit Available: No — there is no confirmed public exploit in the available data.
Analyst recommendation
This vulnerability presents a clear risk to data integrity within applications relying on the xmldom library. Organizations should prioritize updating to the patched versions provided by the vendor. For legacy implementations where no patch exists, immediate migration is required to ensure the security of the application stack.
More DOM CVEs
Sources
- https://github.com/xmldom/xmldom/security/advisories/GHSA-27p8-2357-5qqv
- https://github.com/xmldom/xmldom/pull/1071
- https://github.com/xmldom/xmldom/pull/1072
- https://github.com/xmldom/xmldom/commit/57aec90ac57b4408ae7c5d1746bf2a693b5ed90e
- https://github.com/xmldom/xmldom/commit/85f12eb4d14b44de33216cfb72b50af4d24e9fdd
- https://github.com/xmldom/xmldom/releases/tag/0.8.15
- https://github.com/xmldom/xmldom/releases/tag/0.9.12