CVE-2024-41818: fast-xml-parser ReDOS at currency parsing

fast-xml-parser Updated 02 Oct 2025

Summary

29/07/2024
Yes i
High
7.5

CVE-2024-41818: fast-xml-parser vulnerable to ReDOS at currency parsing. Affects fast-xml-parser versions >= 4.3.5, < 4.4.1. Fixed in 4.4.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

fast-xml-parser is an open-source library for parsing XML data in JavaScript. It provides a fast and efficient way to parse XML documents and extract data from them. The library is widely used in various applications and projects that require XML parsing functionality. However, a vulnerability has been discovered in the experimental version 5 of fast-xml-parser, specifically in the currency parsing module.

Vulnerability Detail

The vulnerability in fast-xml-parser's currency parsing module allows for a Regular Expression Denial of Service (ReDOS) attack. The vulnerable regular expression in the currency.js file can be exploited by an attacker to cause a denial of service by providing a specially crafted input. This can lead to the application becoming unresponsive or crashing during currency parsing. The impact of this vulnerability is a potential disruption of service for applications using the affected version of fast-xml-parser.

How To Fix

Latest published version: 5.11.2 as of 23 Oct 2026

npm install fast-xml-parser@5.11.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.4.1

This is the first release that contains the fix.

npm install fast-xml-parser@4.4.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to update the fast-xml-parser library to the latest version as soon as possible.

Conclusion

The vulnerability in fast-xml-parser's currency parsing module can be exploited to cause a denial of service in applications using the affected version. It is crucial to update the fast-xml-parser library to version 4.4.1 or later to mitigate this vulnerability and ensure the security of the application.

See every vulnerability recorded for fast-xml-parser →

Share this vulnerability

FAQ

fast-xml-parser is an open-source library for parsing XML data in JavaScript. It provides a fast and efficient way to parse XML documents and extract data from them.

The vulnerability can lead to a denial of service in applications using the affected version of fast-xml-parser. This can result in the application becoming unresponsive or crashing during currency parsing.

To fix this vulnerability, update fast-xml-parser to version 4.4.1 or later. This version includes a fix for the ReDOS vulnerability in the currency parsing module.

There is no known workaround for this vulnerability. It is recommended to update the fast-xml-parser library to the latest version.

Related vulnerabilities

Recent vulnerabilities recorded for fast-xml-parser.

How To Fix

Latest published version: 5.11.2 as of 23 Oct 2026

npm install fast-xml-parser@5.11.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.4.1

This is the first release that contains the fix.

npm install fast-xml-parser@4.4.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback