Description
Document.createProcessingInstruction() in @xmldom/xmldom performs no validation on the target parameter. The requireWellFormed: true serializer option validates only for : in the target and a case-insensitive xml prefix, but does not check for > characters. A > in the target breaks the processing instruction boundary (<?...?>), allowing injection of arbitrary content into the serialized XML output.
Recommendation
Update the @xmldom/xmldom package to the latest compatible version. Followings are version details:
Affected version(s): **>= 0.9.0, <= 0.9.11 >= 0.7.0, <= 0.8.14** Patched version(s): **0.9.12 0.8.15**
References
Could your website be exposed too?
SmartScanner can check your website for xmldom: Processing Instruction Target Injection Bypasses requireWellFormed and gives you actionable findings to investigate.
Start a free scanRelated Issues
- xmldom: Processing Instruction Target Injection Bypasses requireWellFormed - xmldom - CVE-2026-83616
- xmldom: Element name injection via createElement() bypasses requireWellFormed - CVE-2026-83607
- xmldom: Attribute name injection via setAttribute() bypasses requireWellFormed - CVE-2026-83605
- xmldom: DocType `name` Injection Bypasses requireWellFormed - CVE-2026-83608


