Packages / fast-xml-parser / Security

HighVulnerabilityGHSA-mpg4-rc92-vx8vCVE-2024-41818Published 29 Jul 2024

fast-xml-parser vulnerable to ReDOS at currency parsing

Your version

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.1
Every release on a timeline
5.x
  1. Not affected

    5.0.0 – 5.12.1

    60 releases, latest

4.x
  1. Not affected

    4.0.0 – 4.3.4

    34 releases

  2. Affected

    4.3.5 – 4.4.0

    3 releases

  3. Fixed

    4.4.1 – 4.5.7

    9 releases

195 stable releases of fast-xml-parser, oldest to newest, one row per major.

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

gauss-security.com

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.