CVE-2026-87776: Compression Package Denial of Service via Memory Leak on Premature Response Close

compression Updated 06 Oct 2026

Summary

05/10/2026
Yes i
High
7.5

CVE-2026-87776: compression vulnerable to Denial of Service via memory leak on premature response close. Affects compression versions < 1.8.2. Fixed in 1.8.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The compression package, utilized in Node.js applications, provides middleware for compressing HTTP responses. It enhances performance by reducing the size of the data sent over the network. However, versions prior to 1.8.2 are susceptible to a Denial of Service (DoS) vulnerability that can be exploited by attackers to exhaust server memory.

Vulnerability Detail

A vulnerability in the compression package versions below 1.8.2 allows an attacker to trigger a Denial of Service (DoS) by disconnecting from the server while a compressed response is being sent. When a client aborts the connection before the response is fully transmitted, the zlib stream responsible for compressing that response is not destroyed, leading to a memory leak. Repeatedly aborting requests can eventually exhaust the server's available memory, causing it to become unresponsive.

How To Fix

Latest published version: 1.8.2 as of 23 Oct 2026

npm install compression@1.8.2

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There are currently no workarounds available for this vulnerability. The best course of action is to upgrade to the patched version as mentioned above.

Conclusion

The compression package vulnerability CVE-2026-87776 poses a significant risk of Denial of Service due to memory leaks when responses are prematurely closed. Upgrading to version 1.8.2 is crucial to mitigate this risk and ensure the stability of your application.

See every vulnerability recorded for compression →

Share this vulnerability

FAQ

The CVSS score for this vulnerability is 7.5, indicating a high severity level.

All versions of the compression package prior to 1.8.2 are affected by this vulnerability.

If you do not update the package, your application remains vulnerable to Denial of Service attacks, which could lead to server downtime and degraded performance.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software without requiring access to the code or installation.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

How To Fix

Latest published version: 1.8.2 as of 23 Oct 2026

npm install compression@1.8.2

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback