NaturalIntelligence fast-xml-parser
fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion limits
fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. From 5.9.3 until 5.10.1, src/xmlparser/OrderedObjParser.js processes multiple DOCTYPE declarations within a single XML document and passes each declaration's entities through addInputEntities(). addInputEntities() resets maxTotalExpansions and maxExpandedLength every time it is called, allowing additional DOCTYPE declarations to repeatedly reset the configured entity-expansion limits during one parse operation. A crafted XML document can then cause excessive CPU use, event-loop blocking, memory exhaustion, and process termination. This issue is fixed in version 5.10.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.9.3, < 5.10.1
Fixed in 5.10.1
Mitigation
Upgrade fast-xml-parser to 5.10.1 or later.
References
- Vendor advisory github.com/NaturalIntelligence/fast-xml-parser…
- Patch github.com/NaturalIntelligence/fast-xml-parser…
- Release notes github.com/NaturalIntelligence/fast-xml-parser…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.