All CVEs / Naturalintelligence
CVE-2023-34104Naturalintelligence Fast-xml-parser
High 7.5 No auth needed
Follow: this CVE · Naturalintelligence · Naturalintelligence Fast-xml-parser We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Fast-xml-parser.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| naturalintelligence | fast-xml-parser | < 4.2.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com
- github.com Mitigation Vendor Advisory