CVE-2024-41818 ReDOS at currency parsing fast-xml-parser
A Regular Expression Denial of Service vulnerability in fast-xml-parser allows attackers to cause service disruption via crafted currency inputs.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-41818?
CVE-2024-41818 is a high-severity denial of service vulnerability in NaturalIntelligence fast-xml-parser, published on 29 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
fast-xml-parser is an open source, pure javascript xml parser. a ReDOS exists on currency.js. This vulnerability is fixed in 4.4.1.
Which versions are affected by CVE-2024-41818?
2 open source packages ship an affected version, including fast-xml-parser. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
fast-xml-parser npm | From 4.3.5 | 4.4.1 |
fast-xml-parser npm | From 4.3.5 | 4.4.1 |
Products include Naturalintelligence Fast-Xml-Parser.
How do I fix CVE-2024-41818?
Upgrade fast-xml-parser to 4.4.1 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-41818 being exploited?
There is no known exploitation of CVE-2024-41818 in the wild and no public exploit code.
Other vulnerabilities in NaturalIntelligence fast-xml-parser
- CVE-2026-25896 fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names
- CVE-2026-33036 fast-xml-parser affected by numeric entity expansion bypassing all entity expansion limits (incomplete fix for CVE-2026-26278)
- CVE-2026-26278 fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit)
- CVE-2026-25128 fast-xml-parser has RangeError DoS Numeric Entities Bug
- CVE-2023-34104 Regex Injection via Doctype Entities
Sources
Also known as GHSA-mpg4-rc92-vx8v.