XML injection in fast-xml-parser - #VU126617
Published: April 20, 2026
fast-xml-parser
Detailed vulnerability description
The vulnerability allows a remote attacker to inject XML content and manipulate generated XML documents.
The vulnerability exists due to improper neutralization of special elements in XMLBuilder when building XML comments or CDATA sections from user-controlled data. A remote attacker can supply crafted comment or CDATA content containing XML delimiters to inject XML content and manipulate generated XML documents.
User interaction is required to trigger browser-side script execution in affected XML, SVG, or HTML contexts.