XML injection in xmldom - #VU142549
Published: August 14, 2026
Vulnerability details
The vulnerability allows a remote attacker to inject arbitrary content into serialized XML or HTML output.
The vulnerability exists due to xml injection in Document.createElement() and XMLSerializer.serializeToString() when processing a user-controlled element name during serialization. A remote attacker can supply a specially crafted tagName value to inject arbitrary content into serialized XML or HTML output.
The issue bypasses the serializer\'s requireWellFormed check and can lead to cross-site scripting when the serialized output is consumed by a browser.