Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-33349 EUVD-2026-20080GHSA-jp2q-39xq-3w4g

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

Published Mar 24, 2026 · Updated Mar 25, 2026 · 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.

Affected products

VendorProductAffectedFixed
NaturalIntelligence fast-xml-parser >= 4.0.0-beta.3, < 5.5.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-webfont No fix yet —
Debian 13 node-webfont No fix yet —
Debian 12 node-webfont No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-webfont No fix yet —
Ubuntu 26.04 LTS node-webfont No fix yet —
Ubuntu 25.10 node-webfont No fix yet —
Ubuntu 24.04 LTS node-webfont No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-frontend 2.16.0-r10 —
Wolfi rolling langfuse-3 3.162.0-r0 —
Wolfi rolling langfuse-3-worker 3.163.0-r0 —
Wolfi rolling prism 5.14.3-r13 —
Wolfi rolling renovate 43.84.0-r1 —
Wolfi rolling saf 1.6.0-r0 —
Wolfi rolling tileserver-gl 5.5.0-r11 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm fast-xml-parser >= 4.0.0-beta.3, < 4.5.5 4.5.5 GHSA-jp2q-39xq-3w4g
npm fast-xml-parser >= 5.0.0, < 5.5.7 5.5.7 GHSA-jp2q-39xq-3w4g

Advisories 1

References