CVE-2026-111181body-parser vulnerable to Denial of Service via trailing bytes after a compressed…
body-parser is body parsing middleware for Node.js and Express. In versions before 1.20.9 and in versions from 2.0.0 before 2.4.0, a single request can crash any application using body-parser with default options. When a request carries a Content-Encoding such as gzip, body-parser pipes it into a decompression stream and, after reading the body, leaves that stream with no error listener. A payload of one valid compressed frame followed by trailing bytes decodes and the application responds normally, but the trailing bytes then reach the already-finished decoder, which emits an error that is re-thrown as an uncaught exception and terminates the process. No matching route is required because body parsing runs before routing, so any endpoint that parses a body is affected. The issue is fixed in body-parser 2.4.0 and 1.20.9, and users should upgrade to one of those versions or later. As a workaround, disable request-body inflation (set the body-parser inflate option to false) so encoded requests are rejected before any decompression stream is created.
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-111181 | |
| Ubuntu 26.04 | node-body-parser | Under investigation | UBUNTU-CVE-2026-111181 | |
| Ubuntu 24.04 | node-body-parser | Under investigation | UBUNTU-CVE-2026-111181 | |
| Ubuntu 22.04 | node-body-parser | Under investigation | UBUNTU-CVE-2026-111181 | |
| Ubuntu 20.04 | node-body-parser | Fix pending | UBUNTU-CVE-2026-111181 | |
| Ubuntu 18.04 | node-body-parser | Fix pending | UBUNTU-CVE-2026-111181 | |
| Ubuntu 16.04 | node-body-parser | Fix pending | UBUNTU-CVE-2026-111181 | |
| Debian 14 | node-body-parser | Fixed | 2.4.0+~1.19.6-1 | DEBIAN-CVE-2026-111181 |
| Debian 13 | node-body-parser | Fix pending | DEBIAN-CVE-2026-111181 | |
| Debian 12 | node-body-parser | Fix pending | DEBIAN-CVE-2026-111181 | |
| Red Hat Enterprise Linux 10 | cockpit-ha-cluster | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | grafana | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | linux-sgx | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | pcs | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | pcs-snmp | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | sgx-common | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | sgx-libs | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | sgx-mpa | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | sgx-pccs | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | sgx-pccs-admin | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | sgx-pckid-tool | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | tdx-qgs | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | grafana | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | linux-sgx | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | pcs | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | sgx-common | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | sgx-libs | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | sgx-mpa | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | sgx-pccs | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | sgx-pccs-admin | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | sgx-pckid-tool | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | tdx-qgs | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | pcs | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Fix pending Affected | ||
| npm library | body-parser | Fixed | 1.20.9 | GHSA-27r3-jxmh-p828 |
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: 2.0.0 to before 2.4.0, 2.4.0 not affected, before 1.20.9, 1.20.9 not affected; fixed in
2.4.0,1.20.9
References
- https://github.com/expressjs/body-parser/security/advisories/GHSA-27r3-jxmh-p828
- 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.