Live threats

All CVEs / compression

CVE-2026-87776compression

Memory leak in Express compression middleware

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Sep 11, 2026
Updated
Sep 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-401, CWE-459
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

The compression middleware for Node.js and Express in versions before 1.8.2 fails to properly destroy zlib streams when a client aborts the connection during a compressed response. An unauthenticated remote attacker can exploit this by repeatedly opening and closing connections to exhaust available memory and crash the server.

Show the original NVD 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 text, unmodified. NVD.

What to do

Patch available · fixed versions: 1.8.2

Update the compression package to version 1.8.2 or later in your Node.js/Express application.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for compression.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm compression < 1.8.2 1.8.2 npm install compression@1.8.2

Per OSV / GitHub Advisories (GHSA-vc2v-76pw-4v95). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

On social media

1 person and 3 posts on Bluesky in the last 30 days.

Most recent posts, without bots or automated feeds. The text belongs to its authors. Search on Bluesky

Official sources

References

Links published by the sources. Open them with care.