{"id":"CVE-2026-87776","aliases":["CVE-2026-87776","GHSA-vc2v-76pw-4v95"],"related":[],"kind":"vulnerability","state":"published","title":"compression vulnerable to Denial of Service via memory leak on premature response close","summary":"compression is a Node.js and Express compression middleware. In versions before 1.8.2, when a client aborts the connection while a compressed response is still being sent, the zlib stream created to compress that response is never destroyed, so each aborted compressed response leaks its native zlib memory. A remote unauthenticated attacker can repeatedly open requests and disconnect early, exhausting the available memory and crashing the server. All applications using compression are affected. The issue is fixed in compression 1.8.2, and users should upgrade to 1.8.2 or later.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"compression is a Node.js and Express compression middleware. In versions before 1.8.2, when a client aborts the connection while a compressed response is still being sent, the zlib stream created to compress that response is never destroyed, so each aborted compressed response leaks its native zlib memory. A remote unauthenticated attacker can repeatedly open requests and disconnect early, exhausting the available memory and crashing the server. All applications using compression are affected. The issue is fixed in compression 1.8.2, and users should upgrade to 1.8.2 or later.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA vulnerability in compression `< 1.8.2` allows an attacker to trigger a Denial of Service (DoS) by disconnecting while a compressed response is being sent. When the client aborts the connection before the response finishes, the zlib stream created to compress that response is never destroyed, so each aborted compressed response leaks its native zlib memory. Repeated aborted requests can exhaust available memory. All applications using compression are affected.\n\n### Patches\n\nUsers should upgrade to `1.8.2`.\n\n### Workarounds\n\nNone.","format":"markdown","source":"ghsa"}],"published":"2026-09-11T11:24:55.150Z","modified":"2026-10-05T23:45:07.378Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-401","CWE-459"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.8.2","status":"affected"},{"type":"semver","version":"1.8.2","status":"unaffected"}],"vendor":"compression","product":"compression","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.8.2"}],"ecosystem":"npm","package":"compression","purl":"pkg:npm/compression","source":"ghsa"}],"references":[{"url":"https://github.com/expressjs/compression/security/advisories/GHSA-vc2v-76pw-4v95","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87776","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/expressjs/compression/commit/151f63e91e1b64f8fb0b064e19321a4f28db6bff","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/expressjs/compression","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/expressjs/compression/releases/tag/v1.8.2","tags":["web"],"sources":["ghsa"]}],"credits":["bjohansebas","UlisesGascon","Phillip9587","KKamJi98"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-09-11T13:30:04.865Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-87776","url":"https://www.cve.org/CVERecord?id=CVE-2026-87776","licence":"CVE Terms of Use","modified":"2026-09-11T13:36:30.531Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vc2v-76pw-4v95","url":"https://github.com/advisories/GHSA-vc2v-76pw-4v95","licence":"CC-BY-4.0","modified":"2026-10-05T23:45:07.378Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-87776","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87776","licence":"Public domain","modified":"2026-09-16T19:40:00.317Z"}],"updatedAt":"2026-11-25T22:59:37.946Z","epss":{"score":0.00477,"percentile":0.42857,"date":"2026-12-02T12:00:21.000Z"}}