body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body
CVE-2026-111181 · GHSA-27r3-jxmh-p828 · published 23 Oct 2026
How serious is it
- Severity: high, CVSS score 7.5 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-111181?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
body-parser(npm) >= 2.0.0, < 2.4.0body-parser(npm) < 1.20.9
How to check
- Run
npm ls body-parserin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
- Or run
npx shippable-dev scan localhost:3000in your project folder. It reads your lockfile and flags this vulnerability along with every other known one.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- On >= 2.0.0, < 2.4.0: Upgrade
body-parserto 2.4.0 or later, commit the lockfile and redeploy. - On < 1.20.9: Upgrade
body-parserto 1.20.9 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
### Impact
A single request can crash any application using `body-parser` with default options. When a request carries a `Content-Encoding` (for example `gzip`), `body-parser` pipes it into a decompression stream and, after reading the body, leaves that stream piped 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 authentication or matching route is required, since parsing runs before routing.
### Patches
Fixed in body-parser 2.4.0 and 1.20.9. Upgrade to one of these versions.
### Workarounds
Pass `inflate: false` to the body-parser middleware if the application does not need to accept compressed request bodies. This rejects encoded requests before any decompression stream is created.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/expressjs/body-parser/security/advisories/GHSA-27r3-jxmh-p828
- nvd.nist.gov/vuln/detail/CVE-2026-111181
- github.com/expressjs/body-parser/commit/1260c3845f54502a05a87594f09a334786bb34d7
- github.com/expressjs/body-parser/commit/f7075eae3a84c3473ab4bf0a777da28db208e916
- cna.openjsf.org/security-advisories.html
- github.com/expressjs/body-parser/releases/tag/1.20.9
- github.com/expressjs/body-parser/releases/tag/v2.4.0
- github.com/advisories/GHSA-27r3-jxmh-p828
- github.com/expressjs/body-parser
Merged from GitHub Advisory Database, OSV. Last updated 26 Oct 2026. All vulnerabilities · RSS · JSON