← CVE Intelligence

CVE-2026-41675

xmldom: XML node injection through unvalidated processing instruction serialization PUBLISHED

Description (CNA)

xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. In @xmldom/xmldom prior to versions 0.9.10 and 0.8.13 and xmldom version 0.6.0 and prior, the package allows attacker-controlled processing instruction data to be serialized into XML without validating or neutralizing the PI-closing sequence ?>. As a result, an attacker can terminate the processing instruction early and inject arbitrary XML nodes into the serialized output. This issue has been patched in versions @xmldom/xmldom versions 0.9.10 and 0.8.13.

Affected (CNA)

Vendor / productVersions
xmldom / xmldomaffected xmldom <= 0.6.0; affected @xmldom/xmldom >= 0.9.0, < 0.9.10; affected @xmldom/xmldom < 0.8.13

CWE

CWE-91

References

ADP enrichment

CISA-ADP

No English description supplied.

redhat-SADP

A flaw was found in xmldom. A remote attacker can exploit this vulnerability by providing specially crafted processing instruction data. Due to improper validation of the processing instruction closing sequence, the attacker can terminate the instruction prematurely and inject arbitrary XML nodes into the serialized output. This can lead to data manipulation and integrity issues within applications that process the affected XML.