CVE-2026-41675: Xmldom Unsafe Pi Serialization

Serializing an XML Processing Instruction without validating or escaping the closing sequence '?>' can lead to XML injection if the data is attacker-controlled. Ensure you check that the instruction data does not contain '?>' prior to string binding.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-41675-xmldom-unsafe-pi-serialization --engine opengrep

Description

Serializing an XML Processing Instruction without validating or escaping the closing sequence '?>' can lead to XML injection if the data is attacker-controlled. Ensure you check that the instruction data does not contain '?>' prior to string binding.