Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-111181

HIGH 7.5EPSS 35%

body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body

Also known as GHSA-27r3-jxmh-p828

Mitigation

  • Upgrade body-parser to one of 2.4.0, 1.20.9 (or later in the same release line).

Who should check

  • Projects that depend on npm package body-parser (>= 2.0.0, < 2.4.0)
  • Anyone running body-parser >= 2.0.0, < 2.4.0; < 1.20.9

Vulnerability facts

Affected
body-parser >= 2.0.0, < 2.4.0
Fixed in
2.4.0, 1.20.9
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.49% chance of exploitation in 30 days (percentile 35, 2026-11-26)
CWE
CWE-248
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
npm body-parser>= 2.0.0, < 2.4.02.4.0, 1.20.9osv
body-parser>= 2.0.0, < 2.4.0; < 1.20.9—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-111181. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-111181.md
Affected: body-parser >= 2.0.0, < 2.4.0
Fixed in: 2.4.0, 1.20.9

Steps:
1. Search this machine and project for body-parser (npm), body-parser: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-111181 being exploited?

There is no confirmed exploitation: CVE-2026-111181 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-111181?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-111181?

body-parser >= 2.0.0, < 2.4.0.

Is there a fix for CVE-2026-111181?

Yes. Fixed in 2.4.0, 1.20.9. Upgrade body-parser to one of 2.4.0, 1.20.9 (or later in the same release line).

How do I check if I'm affected by CVE-2026-111181?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors