{"schema":"threatline.record/2","record":{"id":"CVE-2026-111181","aliases":["GHSA-27r3-jxmh-p828"],"summary":"body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body","details":"### Impact\n\nA 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.\n\n### Patches\n\nFixed in body-parser 2.4.0 and 1.20.9. Upgrade to one of these versions.\n\n### Workarounds\n\nPass `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.","categories":["Libraries & packages"],"product":"body-parser","vendor":"body-parser","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-27r3-jxmh-p828","source_modified_at":"2026-10-23T20:53:12Z","fetched_at":"2026-10-23T21:10:45.942435Z","package":{"ecosystem":"npm","name":"body-parser"},"range":">= 2.0.0, < 2.4.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-27r3-jxmh-p828","source_modified_at":"2026-10-23T20:53:12Z","fetched_at":"2026-10-23T21:10:45.942435Z","package":{"ecosystem":"npm","name":"body-parser"},"range":"< 1.20.9"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-111181","source_modified_at":"2026-10-22T19:00:31.729Z","fetched_at":"2026-10-23T18:42:43.628194Z","product":"body-parser","vendor":"body-parser","versions":[{"lessThan":"2.4.0","status":"affected","version":"2.0.0","versionType":"semver"},{"status":"unaffected","version":"2.4.0","versionType":"semver"},{"lessThan":"1.20.9","status":"affected","version":"0","versionType":"semver"},{"status":"unaffected","version":"1.20.9","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-27r3-jxmh-p828","source_modified_at":"2026-10-23T21:00:06.131613693Z","fetched_at":"2026-10-23T21:10:45.942435Z","package":{"name":"body-parser","ecosystem":"npm","purl":"pkg:npm/body-parser"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.0"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-27r3-jxmh-p828","source_modified_at":"2026-10-23T21:00:06.131613693Z","fetched_at":"2026-10-23T21:10:45.942435Z","package":{"name":"body-parser","ecosystem":"npm","purl":"pkg:npm/body-parser"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.20.9"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-27r3-jxmh-p828","source_modified_at":"2026-10-23T20:53:12Z","fetched_at":"2026-10-23T21:10:45.942435Z","package":{"ecosystem":"npm","name":"body-parser"},"version":"2.4.0"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-27r3-jxmh-p828","source_modified_at":"2026-10-23T20:53:12Z","fetched_at":"2026-10-23T21:10:45.942435Z","package":{"ecosystem":"npm","name":"body-parser"},"version":"1.20.9"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-111181","source_modified_at":"2026-10-22T19:00:31.729Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"body-parser","ecosystem":null},"version":"2.4.0","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-111181","source_modified_at":"2026-10-22T19:00:31.729Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"body-parser","ecosystem":null},"version":"1.20.9","basis":"first unaffected version stated in the CVE record"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-27r3-jxmh-p828","source_modified_at":"2026-10-23T21:00:06.131613693Z","fetched_at":"2026-10-23T21:10:45.942435Z","package":{"name":"body-parser","ecosystem":"npm","purl":"pkg:npm/body-parser"},"version":"2.4.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-27r3-jxmh-p828","source_modified_at":"2026-10-23T21:00:06.131613693Z","fetched_at":"2026-10-23T21:10:45.942435Z","package":{"name":"body-parser","ecosystem":"npm","purl":"pkg:npm/body-parser"},"version":"1.20.9"}],"cvss":7.5,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00366,"percentile":0.29333,"score_date":"2026-10-23"},"published_at":"2026-10-22T14:29:56.577Z","modified_at":"2026-10-23T21:00:06.131613693Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-27r3-jxmh-p828","fetched_at":"2026-10-23T21:10:45.942435Z","source_modified_at":"2026-10-23T20:53:12Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-111181","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-22T19:00:31.729Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-27r3-jxmh-p828","fetched_at":"2026-10-23T21:10:45.942435Z","source_modified_at":"2026-10-23T21:00:06.131613693Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-111181","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/expressjs/body-parser/security/advisories/GHSA-27r3-jxmh-p828"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-111181","source":"GitHub Advisory Database"},{"url":"https://github.com/expressjs/body-parser/commit/1260c3845f54502a05a87594f09a334786bb34d7","source":"GitHub Advisory Database"},{"url":"https://github.com/expressjs/body-parser/commit/f7075eae3a84c3473ab4bf0a777da28db208e916","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://cna.openjsf.org/security-advisories.html"},{"url":"https://github.com/expressjs/body-parser/releases/tag/1.20.9","source":"GitHub Advisory Database"},{"url":"https://github.com/expressjs/body-parser/releases/tag/v2.4.0","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-27r3-jxmh-p828","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","assessed_at":"2026-10-22T18:26:41.855566Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-23T21:00:06.131613693Z","content_hash":"05632500a5d447c1db49b83549643c3d90d6ce28a509be6dd1cabdc7cd0448f2"}}
