Skip to content
OpenAdvisories

Description

Impact: In body-parser versions prior to 1.20.6 (1.x line) and 2.3.0 (2.x line), when the parser is configured with an invalid limit option value such as an unparseable string or NaN, bytes.parse returns null and the request body size check is silently skipped. Applications that rely on limit as their primary safeguard against oversized request bodies will accept arbitrarily large payloads, leading to excessive memory and CPU usage and denial of service. Patches: This issue is fixed in body-parser 1.20.6 and 2.3.0. After the fix, invalid limit values throw a clear error at parser construction time instead of silently disabling enforcement, while null and undefined continue to fall back to the default limit of 100kb. Workarounds: Validate the limit value before passing it to body-parser. For example, parse the value at startup and reject any configuration where the result is null or a non-finite number.

Affected products

VendorProductAffectedFixed
body-parser body-parser < 1.20.6, 2.0.0 – < 2.3.0 1.20.6

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-body-parser 2.3.0+~1.19.6-1 —
Debian 13 node-body-parser No fix yet —
Debian 12 node-body-parser No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-body-parser No fix yet —
Ubuntu 26.04 LTS node-body-parser No fix yet —
Ubuntu 25.10 node-body-parser No fix yet —
Ubuntu 24.04 LTS node-body-parser No fix yet —
Ubuntu 22.04 LTS node-body-parser No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-body-parser No fix yet —
Ubuntu 18.04 LTS node-body-parser No fix yet —
Ubuntu 16.04 LTS node-body-parser No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling argo-workflows-ui-4.0 4.0.8-r0 —
Wolfi rolling code-server 4.130.0-r4 —
Wolfi rolling json-server 0.17.4-r10 —
Wolfi rolling jupyter-base-notebook 7.6.3-r2 —
Wolfi rolling kubeflow-centraldashboard 1.10.0-r25 —
Wolfi rolling kubeflow-pipelines-apiserver +1 2.17.2-r4 —
Wolfi rolling kubeflow-pipelines-frontend 2.17.0-r2 —
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.224.0-r0 —
Wolfi rolling sqlpad 7.5.7-r29 —
Wolfi rolling tileserver-gl 5.6.0-r10 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm body-parser < 1.20.6 1.20.6 GHSA-v422-hmwv-36x6
npm body-parser >= 2.0.0, < 2.3.0 2.3.0 GHSA-v422-hmwv-36x6

Advisories 2

References