Node.js Compression Middleware Vulnerability in Express Framework
CVE-2026-87776

7.5HIGH

Key Information:

Vendor
CVE Published:
11 September 2026

What is CVE-2026-87776?

The compression middleware for Node.js and Express prior to version 1.8.2 contains a vulnerability where an uncleaned zlib stream can lead to memory leaks. This occurs when a client aborts a connection while a compressed response is being sent, leaving the zlib stream active and consuming memory. An unauthenticated attacker can exploit this by repeatedly opening and aborting requests, potentially exhausting server memory and causing crashes. All applications utilizing this middleware are susceptible, necessitating an upgrade to version 1.8.2 or later to mitigate the issue.

Affected Version(s)

compression 0 < 1.8.2

compression 1.8.2

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

bjohansebas
UlisesGascon
Phillip9587
KKamJi98
.