{"id":"CVE-2026-33349","published":"2026-03-24T19:35:47Z","modified":"2026-03-25T14:28:07Z","title":"fast-xml-parser: Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation","vendor":"NaturalIntelligence","product":"fast-xml-parser","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0051,"percentile":0.44434,"provenance":"source"},"cwes":[{"id":"CWE-1284","name":"Improper Validation of Specified Quantity in Input"}],"references":[{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-jp2q-39xq-3w4g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/NaturalIntelligence/fast-xml-parser/commit/239b64aa1fc5c5455ddebbbb54a187eb68c9fdb7","tags":["x_refsource_MISC"]}],"priority":{"score":13.0,"factors":[{"name":"EPSS percentile","points":8.89},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"naturalintelligence","affectedVersions":[{"vendor":"NaturalIntelligence","product":"fast-xml-parser","versions":[">= 4.0.0-beta.3, < 5.5.7"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-25T14:00:54.871779Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fast-xml-parser","vulnerableRanges":[">=4.0.0-beta.3, <4.5.5",">=5.0.0, <5.5.7"],"patched":["4.5.5","5.5.7"],"from":["GHSA-jp2q-39xq-3w4g"],"provenance":"source"}],"summary":{"text":"The fast-xml-parser library (by NaturalIntelligence), in versions from 4.0.0-beta.3 up to but not including 5.5.7, mishandles the maxEntityCount and maxEntitySize limits in its DocTypeReader component: when a developer sets either limit to 0, JavaScript's falsy evaluation of zero causes the guard checks to be skipped, so the intended restriction is not enforced. An attacker who can submit XML to an application using the library with such a configuration, without needing authentication or user interaction, can trigger unbounded entity expansion that exhausts memory and causes denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:37Z"},"euvd":{"id":"EUVD-2026-20080","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-naturalintelligence-fast-xml-parser-cve-2021-26920","parents":[{"from":"CVE-2023-26920","to":"CVE-2026-33349","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/xmlparser/OrderedObjParser.js"],"commits":["https://github.com/NaturalIntelligence/fast-xml-parser/commit/2b032a4f799c63d83991e4f992f1c68e4dd05804","https://github.com/NaturalIntelligence/fast-xml-parser/commit/239b64aa1fc5c5455ddebbbb54a187eb68c9fdb7","https://github.com/NaturalIntelligence/fast-xml-parser/commit/88d0936a23dabe51bfbf42255e2ce912dfee2221"],"basis":"shared function","functions":["buildAttributesMap"]}]},{"from":"CVE-2026-26278","to":"CVE-2026-33349","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/fxp.d.ts","src/xmlparser/DocTypeReader.js","src/xmlparser/OptionsBuilder.js"],"commits":["https://github.com/NaturalIntelligence/fast-xml-parser/commit/910dae5be2de2955e968558fadf6e8f74f117a77","https://github.com/NaturalIntelligence/fast-xml-parser/commit/239b64aa1fc5c5455ddebbbb54a187eb68c9fdb7","https://github.com/NaturalIntelligence/fast-xml-parser/commit/88d0936a23dabe51bfbf42255e2ce912dfee2221"],"basis":"shared function","functions":["DocTypeReader","buildAttributesMap"]}]},{"from":"CVE-2026-25896","to":"CVE-2026-33349","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/xmlparser/DocTypeReader.js"],"commits":["https://github.com/NaturalIntelligence/fast-xml-parser/commit/943ef0eb1b2d3284e72dd74f44a042ee9f07026e","https://github.com/NaturalIntelligence/fast-xml-parser/commit/ddcd0acf26ddd682cb0dc15a2bd6aa3b96bb1e69","https://github.com/NaturalIntelligence/fast-xml-parser/commit/239b64aa1fc5c5455ddebbbb54a187eb68c9fdb7","https://github.com/NaturalIntelligence/fast-xml-parser/commit/88d0936a23dabe51bfbf42255e2ce912dfee2221"],"basis":"shared function","functions":["DocTypeReader"]}]}],"packageHistory":[{"cve":"CVE-2026-26278","published":"2026-02-19","fixed":"5.3.6","kev":false},{"cve":"CVE-2026-27942","published":"2026-02-26","fixed":"5.3.8","kev":false,"link":{"from":"CVE-2026-27942","to":"CVE-2026-33349","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fast-xml-parser","fromFixed":"4.5.4","toFixed":"4.5.5","daysApart":26}]}},{"cve":"CVE-2026-33036","published":"2026-03-20","fixed":"5.5.6","kev":false,"link":{"from":"CVE-2026-33036","to":"CVE-2026-33349","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fast-xml-parser","fromFixed":"5.5.6","toFixed":"5.5.7","daysApart":4},{"kind":"same-code","provenance":"machine","files":["src/xmlparser/OrderedObjParser.js"],"commits":["https://github.com/NaturalIntelligence/fast-xml-parser/commit/bd26122c838e6a55e7d7ac49b4ccc01a49999a01","https://github.com/NaturalIntelligence/fast-xml-parser/commit/239b64aa1fc5c5455ddebbbb54a187eb68c9fdb7","https://github.com/NaturalIntelligence/fast-xml-parser/commit/88d0936a23dabe51bfbf42255e2ce912dfee2221"],"basis":"shared file"}]}},{"cve":"CVE-2026-33349","published":"2026-03-24","fixed":"5.5.7","kev":false},{"cve":"CVE-2026-41650","published":"2026-05-07","fixed":"5.7.0","kev":false,"link":{"from":"CVE-2026-33349","to":"CVE-2026-41650","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fast-xml-parser","fromFixed":"5.5.7","toFixed":"5.7.0","daysApart":44},{"kind":"version-step","provenance":"source","package":"npm:fast-xml-parser","fromFixed":"4.5.5","toFixed":"4.5.7","daysApart":44}]}},{"cve":"CVE-2026-73569","published":"2026-08-13","fixed":"5.10.1","kev":false},{"cve":"CVE-2026-126066","published":"2026-11-10","fixed":"5.12.0","kev":false}],"package":"npm:fast-xml-parser"}}