Advisory

GHSA-mpg4-rc92-vx8v

Also known as: CVE-2024-41818

Summary

fast-xml-parser vulnerable to ReDOS at currency parsing

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-07-29 17:46 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

fast-xml-parser

npm · All systems

Affected

  • introduced 4.3.5, fixed 4.4.1 (semver)

Fixed versions

4.4.1

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences