# CVE-2026-111181: body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.49% (percentile 35, 2026-11-26)
- **CWE:** CWE-248
- **Aliases:** GHSA-27r3-jxmh-p828
- **Published:** 2026-10-22T14:29:56.577Z
- **Modified:** 2026-10-23T21:00:06.131Z

## 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

## 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

- npm `body-parser`: affected \>= 2.0.0, \< 2.4.0; fixed 2.4.0, 1.20.9 (osv)
- body-parser: \>= 2.0.0, \< 2.4.0; \< 1.20.9 (cvelist)

## Mitigation

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/expressjs/body-parser/security/advisories/GHSA-27r3-jxmh-p828>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-111181>
- patch: <https://github.com/expressjs/body-parser/commit/1260c3845f54502a05a87594f09a334786bb34d7>
- patch: <https://github.com/expressjs/body-parser/commit/f7075eae3a84c3473ab4bf0a777da28db208e916>
- other: <https://cna.openjsf.org/security-advisories.html>
- other: <https://github.com/expressjs/body-parser>
- other: <https://github.com/expressjs/body-parser/releases/tag/1.20.9>
- other: <https://github.com/expressjs/body-parser/releases/tag/v2.4.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-111181>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-27r3-jxmh-p828> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-111181> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-111181>
