fast-xml-builder allows attribute values with unwanted quotes to bypass malicious or unwanted attributes
High severity
GitHub Reviewed
Published
May 4, 2026
in
NaturalIntelligence/fast-xml-builder
•
Updated May 14, 2026
Description
Published to the GitHub Advisory Database
May 8, 2026
Reviewed
May 8, 2026
Published by the National Vulnerability Database
May 13, 2026
Last updated
May 14, 2026
Summary
When an input data has quotes in attribute values but process entities is not enabled, it breaks the attribute value into multiple attributes. This gives the room for an attacker to insert unwanted attributes to the XML/HTML.
Detail
Malicious Input
Output
Workarounds
If you're not ignoring attributes then keep processEntities flag true.
References