JavaScript XML DOM Library Vulnerability in xmldom by xmldom
CVE-2026-41674
8.7HIGH
What is CVE-2026-41674?
The xmldom library in JavaScript, specifically versions before 0.9.10 and 0.8.13 of @xmldom/xmldom, as well as version 0.6.0 of xmldom, contains a vulnerability that allows the serialization of DocumentType node fields without proper validation. When these fields are manipulated with attacker-controlled input, it can lead to malicious output where the DOCTYPE declaration is prematurely terminated, potentially allowing arbitrary markup to be inserted unexpectedly. This flaw poses a significant risk and has been mitigated in the later releases.
Affected Version(s)
xmldom xmldom <= 0.6.0 <= xmldom 0.6.0
xmldom @xmldom/xmldom >= 0.9.0, < 0.9.10 < @xmldom/xmldom 0.9.0, 0.9.10
xmldom @xmldom/xmldom < 0.8.13 < @xmldom/xmldom 0.8.13
