All CVEs / Naturalintelligence
CVE-2026-33349Naturalintelligence Fast-xml-parser
Medium 5.9 No auth needed
Follow: this CVE · Naturalintelligence · Naturalintelligence Fast-xml-parser We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.9
- EPSS
- —
- Auth required
- No
- Published
- Mar 24, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1284
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
fast-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.5.7, the DocTypeReader in fast-xml-parser uses JavaScript truthy checks to evaluate maxEntityCount and maxEntitySize configuration limits. When a developer explicitly sets either limit to 0 — intending to disallow all entities or restrict entity size to zero bytes — the falsy nature of 0 in JavaScript causes the guard conditions to short-circuit, completely bypassing the limits. An attacker who can supply XML input to such an application can trigger unbounded entity expansion, leading to memory exhaustion and denial of service. This issue has been patched in version 5.5.7.
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.0.0-beta.3 < 4.5.5 |
4.5.5 |
npm install fast-xml-parser@4.5.5 |
| npm | fast-xml-parser |
≥ 5.0.0 < 5.5.7 |
5.5.7 |
npm install fast-xml-parser@5.5.7 |
Per OSV / GitHub Advisories (GHSA-jp2q-39xq-3w4g). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| naturalintelligence | fast-xml-parser | ≥ 4.0.1 < 4.5.5 |
| naturalintelligence | fast-xml-parser | ≥ 5.0.0 < 5.5.7 |
| naturalintelligence | fast-xml-parser | 4.0.0 |
| naturalintelligence | fast-xml-parser | 4.0.0 |
| naturalintelligence | fast-xml-parser | 4.0.0 |
| naturalintelligence | fast-xml-parser | 4.0.0 |
| naturalintelligence | fast-xml-parser | 4.0.0 |
| naturalintelligence | fast-xml-parser | 4.0.0 |
| naturalintelligence | fast-xml-parser | 4.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Mitigation Vendor Advisory