Live threats

All CVEs / Naturalintelligence

CVE-2023-34104Naturalintelligence Fast-xml-parser

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
No
Published
Jun 6, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-1333
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Fast-xml-parser.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm fast-xml-parser ≥ 4.1.3 < 4.2.4 4.2.4 npm install fast-xml-parser@4.2.4

Per OSV / GitHub Advisories (GHSA-6w63-h3fj-q4vw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
naturalintelligencefast-xml-parser< 4.2.4

Official sources

References

Links published by the sources. Open them with care.