XML Entity Expansion in fast-xml-parser - CVE-2026-33036
Published: April 20, 2026
fast-xml-parser
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to improper restriction of entity expansion in replaceEntitiesValue() in src/xmlparser/OrderedObjParser.js when parsing XML input containing numeric character references or standard XML entities. A remote attacker can send specially crafted XML input with massive numbers of numeric entity references to cause a denial of service.
The configured entity expansion limits are enforced only for DOCTYPE-defined entities, while numeric character references and standard XML entities are processed through a separate code path without expansion counting.