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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-webfont | No fix yet | — |
| Debian 13 | node-webfont | No fix yet | — |
| Debian 12 | node-webfont | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- WID-SEC-2026-1407 IBM App Connect Enterprise Certified Container: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 3, 2026