CVE-2026-87776compression
Memory leak in Express compression middleware
High 7.5 No auth needed
Follow: this CVE · compression · compression We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Sep 11, 2026
- Updated
- Sep 16, 2026
- Category
- Application · Cross-platform
- 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.
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.
- Apply the vendor's security update for compression.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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
- compression · compression
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- agama-web-ui-25+723.416bea1dc-57.1 on GA media · SUSE · openSUSE-SU-2026:12701-1 · Nov 27, 2026 Critical
- Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update · Red Hat · RHSA-2026:87004 · Nov 13, 2026 High
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.