npm / fast-xml-parser
fast-xml-parser
What changed in fast-xml-parser 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
1 breaking7 security1 new APIs and options2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initfast-xml-parser 511 changes
Breaking changes 1
Uint8Array XML input is decoded as UTF-8.
Security 7
fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion limits
Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation in fast-xml-parser
fast-xml-parser affected by numeric entity expansion bypassing all entity expansion limits (incomplete fix for CVE-2026-26278)
fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit)
fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
fast-xml-parser has RangeError DoS Numeric Entities Bug
New APIs and options 1
Node metadata now supports endIndex, allowing developers to access the end index.
Fixes and other changes 2
The version parameter is typed as a number.
The parser no longer crashes when it encounters a closing tag with no matching opening tag.