fast-xml-parser
Affected
- introduced
5.9.3, fixed5.10.1(semver)
Fixed versions
5.10.1
Fix
- Fixed version
5.10.1npm install [email protected]
Advisory
Also known as: CVE-2026-73569
fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion limits
Impactfast-xml-parser processes multiple "DOCTYPE" declarations within a single XML document. Each declaration passes its entities to @nodable/entities through addInputEntities().
addInputEntities() resets the entity expansion counters every time it is called. An attacker can therefore insert additional DOCTYPE declarations to repeatedly reset maxTotalExpansions and maxExpandedLength during one parse operation.
This allows a crafted XML document to exceed the configured entity-expansion limits and can cause excessive CPU use, event-loop blocking, memory exhaustion, and process termination.
Workarounds
processEntity flag offHigh Basis: The source's own band: HIGH
5.9.3, fixed 5.10.1 (semver)5.10.1
5.10.1npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0