fast-xml-parser
Affected
- introduced
4.3.5, fixed4.4.1(semver)
Fixed versions
4.4.1
Fix
- Fixed version
4.4.1npm install [email protected]
Advisory
Also known as: 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
High Basis: The source's own band: HIGH
4.3.5, fixed 4.4.1 (semver)4.4.1
4.4.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