CVE-2026-87776

compression vulnerable to Denial of Service via memory leak on premature response close

State
Published
Severity
7.5 High
Published
Sep 11, 2026
Updated
Sep 11, 2026
Reserved
Sep 9, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hopenjs

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime
  • CWE-459 Incomplete Cleanup

Affected Products

ProductVersions
compressioncompression
  • before 1.8.2Affected
  • 1.8.2Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.