CVE-2026-83616
8.7DOM · xmldom
A flaw in xmldom allows attackers to inject arbitrary XML structure due to insufficient validation of processing instruction targets in Document.createProcessingInstruction.
Executive summary
A high-severity XML injection vulnerability in the xmldom library permits unauthenticated attackers to manipulate XML structure, potentially leading to data integrity compromise.
Vulnerability
The vulnerability is an XML injection flaw (CWE-91) located in the lib/dom.js file, where the Document.createProcessingInstruction function fails to validate input targets. This allows an unauthenticated attacker to inject malicious characters that break XML processing boundaries.
Business impact
Successful exploitation allows an attacker to alter the structure of XML documents generated by the application, which may lead to unauthorized data modification or downstream application logic errors. With a CVSS score of 8.7, this vulnerability poses a significant risk to the integrity of systems relying on xmldom for secure XML parsing and serialization.
Remediation
Immediate Action: Update the @xmldom/xmldom dependency to version 0.8.15 or 0.9.12 immediately. If using the legacy xmldom package, which lacks a fix, consider migrating to the @xmldom/xmldom fork or implementing strict input sanitization as a temporary measure.
Proactive Monitoring: Review application logs for unusual XML structures or unexpected characters appearing in fields processed by XML serializers. Monitor for application errors that occur during the generation of XML output.
Compensating Controls: Deploy a Web Application Firewall (WAF) configured to inspect XML payloads for suspicious sequences or invalid processing instructions. Ensure that input validation is enforced at the application layer to block unexpected characters before they reach the DOM parser.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
Given the high CVSS score and the potential for XML injection, organizations must prioritize updating the affected libraries. Because legacy versions of the xmldom package are not being patched, migration to the maintained @xmldom/xmldom fork is the only definitive path to remediation. Failure to address this flaw leaves systems exposed to structural manipulation of critical data.
More DOM CVEs
Sources
- https://github.com/xmldom/xmldom/security/advisories/GHSA-c7q8-3ch8-vqpv
- https://github.com/xmldom/xmldom/pull/1071
- https://github.com/xmldom/xmldom/pull/1072
- https://github.com/xmldom/xmldom/commit/1cde3e31a07c41c87cfd368d6946aa477f16b4f9
- https://github.com/xmldom/xmldom/commit/3b694872bcb5c7e3cbadba961a4be2488750ce5b
- https://github.com/xmldom/xmldom/releases/tag/0.8.15
- https://github.com/xmldom/xmldom/releases/tag/0.9.12