fast-xml-parser: quadratic-time (ReDoS-class) denial of service in XMLValidator attribute scanner, default options
- CVE-2026-141469
- GHSA-7cfw-w2rf-f3jc
- EUVD-2026-140536
Description
fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to version 5.12.1, scanAttributeTokens in src/validator.js resets its cursor to one position after the token start when a leading-whitespace run ends in a stray equals sign. Each loop iteration rescans most of the remaining whitespace, producing quadratic processing time for attacker-controlled XML. The default path is reachable through XMLValidator.validate(xml) and through new XMLParser().parse(xml, true) when validation is enabled, allowing a document of a few hundred kilobytes to block the Node.js event loop for tens of seconds and deny service. This issue affects availability only. This issue is fixed in version 5.12.1.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
NaturalIntelligence fast-xml-parser
Affected versions Fixed in < 5.12.1 none stated fast-xml-parsernpm
Affected versions Fixed in up to 5.12.0 none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.