One gzipped request can crash an Express server, and the fix is a lockfile refresh, not an Express upgrade
CVE-2026-111181 lets a single crafted compressed request crash any Node.js process using body-parser before 1.20.9 or 2.4.0, which covers default Express 4 and 5 apps. No new Express release is needed, but a stale lockfile keeps the bug in place.
The Express project disclosed a denial-of-service flaw on October 28 that lets one HTTP request take down a Node.js process. The bug sits in body-parser, the middleware behind express.json() and express.urlencoded(), so it reaches most Express apps without anyone having opted into anything unusual. The fixed versions have been on npm since October 22, which means the real question for most teams is whether their lockfile has picked them up.
What the bug does
CVE-2026-111181 affects body-parser 2.0.0 through 2.3.0 and every 1.x release up to and including 1.20.8. It is fixed in 2.4.0 and 1.20.9. GitHub’s advisory database rates it high severity, CVSS 3.1 score 7.5: network reachable, low complexity, no privileges required, availability impact only.
The trigger is request decompression, which body-parser enables by default through its inflate option. When a request arrives with Content-Encoding: gzip, the parser pipes the body into a decompression stream. According to the advisory, once a complete gzip member has been decoded, the parser hands the result to the next handler but leaves the request still piped into a decoder that no longer has an error listener. Trailing bytes after the compressed frame then make the decoder emit an error that nothing catches, and Node treats it as an uncaught exception and exits.
Stackmaven ran the advisory’s published reproduction on Node 24.21. A minimal server using body-parser 1.20.8 crashed with an uncaught Z_DATA_ERROR, and the same request against 1.20.9 returned 200 with the process still running. An Express 4.22.3 app using only express.json() crashed the same way, as did body-parser 2.3.0 (fixed in 2.4.0). The 1.20.9 patch explicitly unpipes and destroys the decompression stream once parsing finishes.
Why it lands before authentication
Most Express apps register body parsing globally, near the top of the middleware stack and ahead of authentication and routing. The advisory points out that in that layout the attacker needs neither a valid route nor credentials. Any endpoint that accepts a JSON or form body is enough, and the process dies rather than returning an error for that one request.
The advisory adds that requests spread across a load-balanced cluster can take down every instance. Process managers and orchestrators will restart crashed workers, so in practice this looks less like a permanent outage and more like a repeatable way to keep a service flapping. That is still a meaningful availability risk for a cheap, unauthenticated request.
Exploitation status looks calm for now. SecurityOnline reports no confirmed attacks, no listing in CISA’s Known Exploited Vulnerabilities catalog, and a low EPSS score. The reproduction is public, though, so that picture can change quickly.
The fix is in your lockfile
Express itself does not need a new release. Express 4.22.3 declares body-parser as ~1.20.5, and Express 5.3.0 declares ^2.3.0, so both ranges already accept the patched versions. NestJS’s Express adapter, @nestjs/platform-express 12.3.2, pins Express 5.3.0 and inherits the same range.
The catch is that semver ranges only help on a fresh resolve. A project whose package-lock.json, pnpm-lock.yaml, or yarn.lock was written before October 22 still installs the vulnerable version on every npm ci. The practical steps:
- Check what is actually installed:
npm ls body-parser(orpnpm why body-parser) shows every copy in the tree, including ones pulled in by other packages. - Update the transitive dependency:
npm update body-parserorpnpm update body-parser --recursivemoves it within the existing range, then commit the lockfile and redeploy. - Use overrides where a package pins an old copy:
overridesin npm orpnpm.overridescan forcebody-parser@>=1.20.9or>=2.4.0until upstream catches up.
If an upgrade has to wait, the advisory’s workaround is to disable decompression with inflate: false on each parser. That rejects compressed request bodies outright, so it only fits apps whose clients never send them. Most browser traffic does not compress request bodies, but some API clients, SDKs, and webhook senders do, and that is worth confirming before flipping the flag.
The broader pattern
This is the second time in a week that a critical-path fix has arrived through a layer most teams do not track directly. Last week’s PHP runtime flaws needed a new interpreter rather than a Composer bump. This one is the mirror image for Node: the package manager can fix it, but only if someone actually regenerates the lockfile. Teams that run automated dependency updates should see a pull request already. npm audit now reports the vulnerable range as high severity and offers npm audit fix, which makes this a good moment to check whether those audit failures actually block a deploy or just scroll past in the logs.
- CVE-2026-111181: Denial of service in body-parser (Express.js, October 28, 2026) expressjs.com
- GHSA-27r3-jxmh-p828, body-parser denial of service (GitHub Advisory Database) github.com
- CVE-2026-111181 (Rapid7 Vulnerability Database) www.rapid7.com
- Body-Parser Flaw CVE-2026-111181 Lets One Request Crash Express Servers (SecurityOnline) securityonline.info