← Vulnerability feed

Vulnerability record · CVE-2023-34104 · published 6 June 2023

CVE-2023-34104: Naturalintelligence fast-xml-parser uncontrolled resource consumption vulnerability

Naturalintelligence · Fast Xml Parser

fast-xml-parser is an open source, pure javascript xml parser. fast-xml-parser allows special characters in entity names, which are not escaped or sanitized. Since the entity name is used for creating a regex for searching and replacing entities in the XML body, an attacker can abuse it for denial of service (DoS) attacks. By crafting an entity name that results in an intentionally bad performing regex and utilizing it in the entity replacement step of the parser, this can cause the parser to stall for an indefinite amount of time. This problem has been resolved in v4.2.4. Users are advised to upgrade. Users unable to upgrade should avoid using DOCTYPE parsing by setting the `processEntities: false` option.

7.5 CVSS 3.1 High EPSS 1.1% · top 34.8% CWE-400 · Uncontrolled resource consumptionCWE-1333 · Inefficient regular expression (ReDoS)
7.5CVSS 3.1 base score
1.1%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References
17 Jun 2026Last modified by NVD

Description

fast-xml-parser is an open source, pure javascript xml parser. fast-xml-parser allows special characters in entity names, which are not escaped or sanitized. Since the entity name is used for creating a regex for searching and replacing entities in the XML body, an attacker can abuse it for denial of service (DoS) attacks. By crafting an entity name that results in an intentionally bad performing regex and utilizing it in the entity replacement step of the parser, this can cause the parser to stall for an indefinite amount of time. This problem has been resolved in v4.2.4. Users are advised to upgrade. Users unable to upgrade should avoid using DOCTYPE parsing by setting the `processEntities: false` option.

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

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2023-34104 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.3CVE-2026-25896Naturalintelligence fast-xml-parser cross-site scripting vulnerabilityfast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. From…EPSS 0.50%7.5CVE-2026-33036Naturalintelligence fast-xml-parser vulnerabilityfast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Versions 4.0.0-beta.3 through 5.5.5 contain a …EPSS 0.73%7.5CVE-2026-26278Naturalintelligence fast-xml-parser vulnerabilityfast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. In v…EPSS 0.97%7.5CVE-2026-25128Naturalintelligence fast-xml-parser improper input validation vulnerabilityfast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. In v…EPSS 0.58%7.5CVE-2024-41818Naturalintelligence fast-xml-parser uncontrolled resource consumption vulnerabilityfast-xml-parser is an open source, pure javascript xml parser. a ReDOS exists on currency.js. This vulnerability is fixed in 4.4.1.EPSS 0.83%6.1CVE-2026-41650Naturalintelligence fast-xml-parser xml injection vulnerabilityfast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Prior to version 5.7.0, XMLBuilder does not es…EPSS 0.27%5.9CVE-2026-33349Naturalintelligence fast-xml-parser vulnerabilityfast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. From version 4.0.0-beta.3 to before version 5.…EPSS 0.48%2.7CVE-2026-27942Naturalintelligence fast-xml-parser classic buffer overflow vulnerabilityfast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. Prio…EPSS 0.66%

Source: NIST National Vulnerability Database (record CVE-2023-34104), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.