Skip to content

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

HighCVSS 7.5 EPSS 0.39%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

13 packages: 6 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
azure linux python-tensorboard(Azure Linux 3.0) All versions No fix listed No fix yet
debian/node-body-parser(Debian 12) = 1.20.1+~1.19.2-1; = 1.20.2+~1.19.5-1; = 1.20.3+~1.19.5-1; = 1.20.3+~1.19.5-2 +9 more No fix listed No fix yet
debian/node-body-parser(Debian 13) = 1.20.3+~1.19.5-3; = 2.2.0+~1.19.6-1; = 2.2.0+~1.19.6-2; = 2.2.0+~1.19.6-3 +5 more No fix listed No fix yet
ubuntu/node-body-parser(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/node-body-parser(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/node-body-parser(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/node-body-parser(Ubuntu 26.10) All versions No fix listed No fix yet
debian/node-body-parser(Debian 14) < 2.4.0+~1.19.6-1; = 1.20.3+~1.19.5-3; = 2.2.0+~1.19.6-1; = 2.2.0+~1.19.6-2 +4 more 2.4.0+~1.19.6-1 Fixed
npm body-parser < 1.20.9; >= 2.0.0, < 2.4.0 1.20.9, 2.4.0 Fixed
npm body-parser(npm) < 1.20.9; >= 2.0.0, < 2.4.0 1.20.9, 2.4.0 Fixed
redhat/grafana12-4-main(Red Hat hummingbird 1) < 12.4.13-0.4.hum1; < 12.4.13-0.5.hum1 12.4.13-0.4.hum1, 12.4.13-0.5.hum1 Fixed
redhat/grafana13-1-main(Red Hat hummingbird 1) < 13.1.8-0.5.hum1 13.1.8-0.5.hum1 Fixed
redhat/grafana13-2-main(Red Hat hummingbird 1) < 13.2.4-0.4.hum1 13.2.4-0.4.hum1 Fixed

Affected products

ProductAffected versionsFixed in
redhat/grafana12-4-main(Red Hat:hummingbird:1) < 12.4.13-0.4.hum1 12.4.13-0.4.hum1
redhat/grafana13-2-main(Red Hat:hummingbird:1) < 13.2.4-0.4.hum1 13.2.4-0.4.hum1
redhat/grafana13-1-main(Red Hat:hummingbird:1) < 13.1.8-0.5.hum1 13.1.8-0.5.hum1
redhat/grafana12-4-main(Red Hat:hummingbird:1) < 12.4.13-0.5.hum1 12.4.13-0.5.hum1
npm body-parser >= 2.0.0, < 2.4.0 2.4.0
npm body-parser < 1.20.9 1.20.9
debian/node-body-parser(Debian:12) All versions No fix listed
debian/node-body-parser(Debian:12) = 1.20.1+~1.19.2-1 No fix listed
debian/node-body-parser(Debian:12) = 1.20.2+~1.19.5-1 No fix listed
debian/node-body-parser(Debian:12) = 1.20.3+~1.19.5-1 No fix listed
debian/node-body-parser(Debian:12) = 1.20.3+~1.19.5-2 No fix listed
debian/node-body-parser(Debian:12) = 1.20.3+~1.19.5-3 No fix listed
debian/node-body-parser(Debian:12) = 2.2.0+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:12) = 2.2.0+~1.19.6-2 No fix listed
debian/node-body-parser(Debian:12) = 2.2.0+~1.19.6-3 No fix listed
debian/node-body-parser(Debian:12) = 2.2.1+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:12) = 2.2.2+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:12) = 2.3.0+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:12) = 2.4.0+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:13) All versions No fix listed
debian/node-body-parser(Debian:13) = 1.20.3+~1.19.5-3 No fix listed
debian/node-body-parser(Debian:13) = 2.2.0+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:13) = 2.2.0+~1.19.6-2 No fix listed
debian/node-body-parser(Debian:13) = 2.2.0+~1.19.6-3 No fix listed
debian/node-body-parser(Debian:13) = 2.2.1+~1.19.6-1 No fix listed
Show 18 more
ProductAffected versionsFixed in
debian/node-body-parser(Debian:13) = 2.2.2+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:13) = 2.3.0+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:13) = 2.4.0+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:14) < 2.4.0+~1.19.6-1 2.4.0+~1.19.6-1
debian/node-body-parser(Debian:14) = 1.20.3+~1.19.5-3 No fix listed
debian/node-body-parser(Debian:14) = 2.2.0+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:14) = 2.2.0+~1.19.6-2 No fix listed
debian/node-body-parser(Debian:14) = 2.2.0+~1.19.6-3 No fix listed
debian/node-body-parser(Debian:14) = 2.2.1+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:14) = 2.2.2+~1.19.6-1 No fix listed
debian/node-body-parser(Debian:14) = 2.3.0+~1.19.6-1 No fix listed
npm body-parser(npm) >= 2.0.0, < 2.4.0 2.4.0
npm body-parser(npm) < 1.20.9 1.20.9
ubuntu/node-body-parser(Ubuntu:22.04) All versions No fix listed
ubuntu/node-body-parser(Ubuntu:24.04) All versions No fix listed
ubuntu/node-body-parser(Ubuntu:26.04) All versions No fix listed
ubuntu/node-body-parser(Ubuntu:26.10) All versions No fix listed
azure linux python-tensorboard(Azure Linux:3.0) All versions No fix listed

References