CVE-2026-44665: fast-xml-builder allows attribute values with unwanted quotes to bypass malicious or unwanted attributes
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.
Published May 8, 2026 · Updated May 14, 2026
Affected packages
fast-xml-builder
- Ecosystem
- npm
- Affected
- <= 1.1.6
- Fixed in
- 1.1.7
- Check
npm ls fast-xml-builder
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
{
a: {
"@_attr": '" onClick="alert(1)'
}
}Output
Workarounds
If you're not ignoring attributes then keep processEntities flag true.
Credited to amitguptagwl.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
