Packages / fast-xml-parser / Security
fast-xml-parser vulnerable to ReDOS at currency parsing
Affected releases · fast-xml-parser
- 4.x4.3.5 – 4.4.0Fixed in 4.4.1
On 4.x, the newest line:
npm install fast-xml-parser@4.4.1Every release on a timeline
Not affected
5.0.0 – 5.12.1
60 releases, latest
Not affected
4.0.0 – 4.3.4
34 releases
Affected
4.3.5 – 4.4.0
3 releases
Fixed
4.4.1 – 4.5.7
9 releases
What happens
Summary
A ReDOS that exists on currency.js was discovered by Gauss Security Labs R&D team.
Details
github.com/NaturalIntelligence/fast-xml-parser/… 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
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.