---
title: "GHSA-mpg4-rc92-vx8v: fast-xml-parser vulnerable to ReDOS at currency parsing"
description: "High severity. fast-xml-parser vulnerable to ReDOS at currency parsing. Affects fast-xml-parser; fixed in 4.4.1."
url: https://inlinr.com/advisories/GHSA-mpg4-rc92-vx8v
lang: en
---

[Packages](https://inlinr.com/packages) / [fast-xml-parser](https://inlinr.com/packages/fast-xml-parser) / [Security](https://inlinr.com/packages/fast-xml-parser/security)

High Vulnerability GHSA-mpg4-rc92-vx8v CVE-2024-41818 Published 29 Jul 2024

# fast-xml-parser vulnerable to ReDOS at currency parsing

Your version 

Affected releases · [fast-xml-parser](https://inlinr.com/packages/fast-xml-parser)

- 4.x 4.3.5 – 4.4.0 Fixed 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/…](https://github.com/NaturalIntelligence/fast-xml-parser/blob/v4.4.0/src/v5/valueParsers/currency.js#L10 "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

[gauss-security.com](https://gauss-security.com/ "https://gauss-security.com/")

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: high

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:N/​I:N/​A:H

## References

- [Reference](https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-mpg4-rc92-vx8v "https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-mpg4-rc92-vx8v")  
github.com/NaturalIntelligence/fast-xml-parser/…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-41818 "https://nvd.nist.gov/vuln/detail/CVE-2024-41818")  
nvd.nist.gov/vuln/detail/CVE-2024-41818
- [Fix commit](https://github.com/NaturalIntelligence/fast-xml-parser/commit/ba5f35e7680468acd7906eaabb2f69e28ed8b2aa "https://github.com/NaturalIntelligence/fast-xml-parser/commit/ba5f35e7680468acd7906eaabb2f69e28ed8b2aa")  
ba5f35e
- [Fix commit](https://github.com/NaturalIntelligence/fast-xml-parser/commit/d0bfe8a3a2813a185f39591bbef222212d856164 "https://github.com/NaturalIntelligence/fast-xml-parser/commit/d0bfe8a3a2813a185f39591bbef222212d856164")  
d0bfe8a
- [Package](https://github.com/NaturalIntelligence/fast-xml-parser "https://github.com/NaturalIntelligence/fast-xml-parser")  
github.com/NaturalIntelligence/fast-xml-parser
- [Reference](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/src/v5/valueParsers/currency.js#L10 "https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/src/v5/valueParsers/currency.js#L10")  
github.com/NaturalIntelligence/fast-xml-parser/…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
