XML injection in xmldom - #VU126512
Published: April 20, 2026
xmldom
Detailed vulnerability description
The vulnerability allows a remote attacker to inject arbitrary XML markup into serialized output.
The vulnerability exists due to xml injection in DocumentType serialization when serializing attacker-controlled DocumentType fields. A remote attacker can supply crafted publicId, systemId, or internalSubset values to inject arbitrary XML markup into serialized output.
The issue is reachable through programmatic createDocumentType calls or direct writes to DocumentType properties, while the parse path is described as safe.