Skip to main content

Node compression: compression is a Node.js and Express compression middleware. (CVE-2026-87776)

0
Medium
Published: 09/11/2026 (09/11/2026, 12:16:00 UTC)
Source: GCVE Database
Product: node-compression

Description

The Node.js compression middleware (compression) versions before 1.8.2 have a vulnerability where aborted client connections during compressed responses cause native zlib memory leaks. This can be exploited by a remote unauthenticated attacker to exhaust server memory and cause a crash. The issue is fixed in version 1.8.2, and users should upgrade to this or later versions.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

Ubuntu:16.04:LTSmore threats →ghsa
node-compression
pkg:deb/ubuntu/node-compression?arch=source&distro=xenial
Affected versions
=1.1.0-1
Ubuntu:18.04:LTSmore threats →ghsa
node-compression
pkg:deb/ubuntu/node-compression?arch=source&distro=bionic
Affected versions
=1.1.0-1
Ubuntu:20.04:LTSmore threats →ghsa
node-compression
pkg:deb/ubuntu/node-compression?arch=source&distro=focal
Affected versions
=1.7.4-2
Ubuntu:22.04:LTSmore threats →ghsa
node-compression
pkg:deb/ubuntu/node-compression?arch=source&distro=jammy
Affected versions
=1.7.4-2=1.7.4-3
Ubuntu:24.04:LTSmore threats →ghsa
node-compression
pkg:deb/ubuntu/node-compression?arch=source&distro=noble
Affected versions
=1.7.4-3
Ubuntu:26.10more threats →ghsa
node-compression
pkg:deb/ubuntu/node-compression?arch=source&distro=stonking
Affected versions
=1.7.4-3=1.8.1-1
Ubuntu:26.04:LTSmore threats →ghsa
node-compression
pkg:deb/ubuntu/node-compression?arch=source&distro=resolute
Affected versions
=1.7.4-3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/17/2026, 23:22:17 UTC

Technical Analysis

The compression middleware for Node.js and Express versions prior to 1.8.2 improperly handle client connection aborts during compressed responses. Specifically, the zlib stream used for compression is not destroyed when a client disconnects early, leading to native memory leaks. An attacker can exploit this by repeatedly initiating requests and disconnecting prematurely, causing memory exhaustion and server crashes. This affects all applications using the vulnerable compression versions. The vulnerability is addressed in compression version 1.8.2.

Potential Impact

A remote unauthenticated attacker can cause a denial of service by exhausting server memory through repeated aborted requests, leading to server crashes. There is no impact on confidentiality or integrity, only availability is affected.

Mitigation Recommendations

Upgrade the compression middleware to version 1.8.2 or later, where this issue is fixed. No other mitigations are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-87776
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6ad3f54b2cdf04f656658684

Added to database: 10/17/2026, 22:23:07 UTC

Last enriched: 10/17/2026, 23:22:17 UTC

Last updated: 10/17/2026, 23:22:17 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses