{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-111181","id":"CVE-2026-111181","title":"body-parser denial of service in compressed request handling","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","descriptionLong":"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.","published":"2026-10-22T14:29:56.577Z","updated":"2026-11-06T17:27:33.755606116Z","reserved":"2026-10-15T17:35:18.184Z","status":"Awaiting Analysis","rejected":false,"assigner":"openjs","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"openjs"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"openjs"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"ce714d77-add3-4f53-aff5-83d477b104bb"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["body-parser"],"affectedProducts":[{"vendor":"body-parser","product":"body-parser","defaultStatus":"unaffected","versions":[{"versionType":"semver","status":"affected","version":"2.0.0","lessThan":"2.4.0"},{"versionType":"semver","status":"unaffected","version":"2.4.0"},{"versionType":"semver","status":"affected","version":"0","lessThan":"1.20.9"},{"versionType":"semver","status":"unaffected","version":"1.20.9"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"body-parser","purl":"pkg:npm/body-parser","ranges":[">=2.0.0 <2.4.0","<1.20.9"],"fixed":["2.4.0","1.20.9"],"advisory":"GHSA-27r3-jxmh-p828"}],"cwes":["CWE-248"],"aliases":["GHSA-27r3-jxmh-p828"],"references":[{"url":"https://github.com/expressjs/body-parser/security/advisories/GHSA-27r3-jxmh-p828","tags":["advisory","web"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111181.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-111181","tags":["advisory"]},{"url":"https://github.com/expressjs/body-parser/commit/1260c3845f54502a05a87594f09a334786bb34d7","tags":["web"]},{"url":"https://github.com/expressjs/body-parser/commit/f7075eae3a84c3473ab4bf0a777da28db208e916","tags":["web"]},{"url":"https://github.com/expressjs/body-parser","tags":["package"]},{"url":"https://github.com/expressjs/body-parser/releases/tag/1.20.9","tags":["web"]},{"url":"https://github.com/expressjs/body-parser/releases/tag/v2.4.0","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00388,"epssPercentile":0.33634,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-111181","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-111181","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-111181","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-27r3-jxmh-p828","ok":true,"note":"GHSA-27r3-jxmh-p828"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-111181","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}