Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| body-parser | body-parser | 2.0.0 – < 2.4.0, < 1.20.9 | 2.4.0 |
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-body-parser | 2.4.0+~1.19.6-1 | — |
| Debian 13 | node-body-parser | No fix yet | — |
| Debian 12 | node-body-parser | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-body-parser | No fix yet | — |
| Ubuntu 26.04 LTS | 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 | — |
| Ubuntu 20.04 LTS | node-body-parser | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | node-body-parser | No fix yet | — |
| Ubuntu 16.04 LTS | node-body-parser | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | grafana12.4 | 12.4.13-0.4.hum1 | RHSA-2026:91292, RHSA-2026:90388 |
| Red Hat Hardened Images 1 | grafana13.1 | 13.1.8-0.5.hum1 | RHSA-2026:91181 |
| Red Hat Hardened Images 1 | grafana13.2 | 13.2.4-0.4.hum1 | RHSA-2026:90990 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | agama-web-ui | 25+475.275dd4727-56.1 | openSUSE-SU-2026:12424-1 |
| openSUSE Tumbleweed | git-bug | 0.11.0-4.1 | openSUSE-SU-2026:12429-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | js-jquery +1 | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | code-server | 4.143.1-r1 | — |
| Wolfi rolling | json-server | 0.17.4-r15 | — |
| Wolfi rolling | kubeflow-centraldashboard | 2.0.0-r7 | — |
| Wolfi rolling | langfuse-3-worker | 3.225.14-r1 | — |
| Wolfi rolling | thingsboard-tb-web-ui +1 | 4.4-r7 | — |
| Wolfi rolling | tileserver-gl | 5.6.0-r21 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | body-parser | >= 2.0.0, < 2.4.0 | 2.4.0 | GHSA-27r3-jxmh-p828 |
| npm | body-parser | < 1.20.9 | 1.20.9 | GHSA-27r3-jxmh-p828 |
Advisories 6
- RHSA-2026:90388 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:91181 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:91292 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:90990 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- openSUSE-SU-2026:12429-1 git-bug-0.11.0-4.1 on GA media SUSE / openSUSE Security Updates · Nov 6, 2026
- openSUSE-SU-2026:12424-1 agama-web-ui-25+475.275dd4727-56.1 on GA media SUSE / openSUSE Security Updates · Nov 6, 2026