# CVE-2026-33349: fast-xml-parser: Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-19T19:13:13.000Z
- Modified: 2026-09-10T03:50:39.873Z
- Also known as: GHSA-jp2q-39xq-3w4g
- Weaknesses: CWE-1284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- NaturalIntelligence fast-xml-parser: >= 4.0.0-beta.3, < 5.5.7; from 4.0.1 before 4.5.5; from 5.0.0 before 5.5.7; 4.0.0
- fast-xml-parser (npm): from 4.0.0-beta.3 before 4.5.5; from 5.0.0 before 5.5.7

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-jp2q-39xq-3w4g> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/NaturalIntelligence/fast-xml-parser/commit/239b64aa1fc5c5455ddebbbb54a187eb68c9fdb7> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33349> (advisory)
- <https://github.com/NaturalIntelligence/fast-xml-parser/commit/88d0936a23dabe51bfbf42255e2ce912dfee2221> (web)
- <https://github.com/NaturalIntelligence/fast-xml-parser> (package)

## Sources

- CVE List: [CVE-2026-33349](https://www.cve.org/CVERecord?id=CVE-2026-33349), CVE Terms of Use, modified 2026-03-25
- GitHub Advisory Database: [GHSA-jp2q-39xq-3w4g](https://github.com/advisories/GHSA-jp2q-39xq-3w4g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33349](https://nvd.nist.gov/vuln/detail/CVE-2026-33349), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33349 · Whole record: https://cve.day/CVE-2026-33349.json · Rebuilt by cve.day 2026-11-25T22:59:16.608Z
