CVE-2024-41818: fast-xml-parser vulnerable to ReDOS at currency parsing
Summary A ReDOS that exists on currency.js was discovered by Gauss Security Labs R&D team. Details https://github.com/NaturalIntelligence/fast-xml-parser/blob/v4.4.0/src/v5/valueParsers/currency.js#L10 contains a vulnerable regex PoC pass the following string '\t'.repeat(13337) + '.' Impact Denial of service during currency parsing in experimental version 5 of fast-xml-parser-library https://gauss-security.com
Published Jul 29, 2024 · Updated Oct 11, 2024
Affected packages
fast-xml-parser
- Ecosystem
- npm
- Affected
- >= 4.3.5, < 4.4.1
- Fixed in
- 4.4.1
- Check
npm ls fast-xml-parser
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A ReDOS that exists on currency.js was discovered by Gauss Security Labs R&D team.
Details
https://github.com/NaturalIntelligence/fast-xml-parser/blob/v4.4.0/src/v5/valueParsers/currency.js#L10 contains a vulnerable regex
PoC
pass the following string '\t'.repeat(13337) + '.'
Impact
Denial of service during currency parsing in experimental version 5 of fast-xml-parser-library
https://gauss-security.com
Credited to Gauss-Security, amitguptagwl, iamvolvo, aaron-belenky.
References
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-mpg4-rc92-vx8v
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/d0bfe8a3a2813a185f39591bbef222212d856164
- https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/src/v5/valueParsers/currency.js#L10
- https://nvd.nist.gov/vuln/detail/CVE-2024-41818
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/ba5f35e7680468acd7906eaabb2f69e28ed8b2aa
- https://github.com/advisories/GHSA-mpg4-rc92-vx8v
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-126066
fast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tags
low3.7Nov 10, 2026CVE-2026-73569
fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion limits
high8.7Jul 21, 2026CVE-2026-41650
fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters
medium6.1Apr 22, 2026CVE-2026-33349
Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation in fast-xml-parser
medium5.9Mar 19, 2026CVE-2026-33036
fast-xml-parser affected by numeric entity expansion bypassing all entity expansion limits (incomplete fix for CVE-2026-26278)
high7.5Mar 17, 2026CVE-2026-27942
fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
low2.7Feb 26, 2026
