CVE-2026-12590body-parser vulnerable to denial of service when invalid limit value silently disables…
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.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-body-parser | Fix pending | UBUNTU-CVE-2026-12590 | |
| Ubuntu 26.04 | node-body-parser | Under investigation | UBUNTU-CVE-2026-12590 | |
| Ubuntu 25.10 | node-body-parser | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-12590 | |
| Ubuntu 24.04 | node-body-parser | Under investigation | UBUNTU-CVE-2026-12590 | |
| Ubuntu 22.04 | node-body-parser | Under investigation | UBUNTU-CVE-2026-12590 | |
| Ubuntu 20.04 | node-body-parser | Fix pending | UBUNTU-CVE-2026-12590 | |
| Ubuntu 18.04 | node-body-parser | Fix pending | UBUNTU-CVE-2026-12590 | |
| Ubuntu 16.04 | node-body-parser | Fix pending | UBUNTU-CVE-2026-12590 | |
| Debian 14 | node-body-parser | Fixed | 2.3.0+~1.19.6-1 | DEBIAN-CVE-2026-12590 |
| Debian 13 | node-body-parser | Fix pending | DEBIAN-CVE-2026-12590 | |
| Debian 12 | node-body-parser | Fix pending | DEBIAN-CVE-2026-12590 | |
| Red Hat Enterprise Linux 10 | linux-sgx | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-common | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-mpa | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-pccs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-pccs-admin | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-pckid-tool | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | tdx-qgs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gjs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gjs-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | linux-sgx | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-common | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-mpa | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-pccs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-pccs-admin | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-pckid-tool | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | tdx-qgs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cldr-emoji-annotation | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet-host | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0-source-built-artifacts | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet-templates-8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet5.0-build-reference-packages | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | dotnet8.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | netstandard-targeting-pack-2.1 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Fix pending Fix deferred | ||
| npm library | body-parser | Fixed | 2.3.0 | GHSA-v422-hmwv-36x6 |
What the vendor says
As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- body-parser: affected: before 1.20.6, 1.20.6 not affected, 2.0.0 to before 2.3.0, 2.3.0 not affected; fixed in
1.20.6,2.3.0
References
- https://github.com/expressjs/body-parser/security/advisories/GHSA-v422-hmwv-36x6
- https://cna.openjsf.org/security-advisories.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.