Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. compression
  4. ›
  5. CVE-2026-87776

CVE-2026-87776: compression vulnerable to Denial of Service via memory leak on premature response close

October 5, 2026

A vulnerability in compression < 1.8.2 allows an attacker to trigger a Denial of Service (DoS) by disconnecting while a compressed response is being sent. When the client aborts the connection before the response finishes, the zlib stream created to compress that response is never destroyed, so each aborted compressed response leaks its native zlib memory. Repeated aborted requests can exhaust available memory. All applications using compression are affected.

References

  • cna.openjsf.org/security-advisories.html
  • github.com/advisories/GHSA-vc2v-76pw-4v95
  • github.com/expressjs/compression/commit/151f63e91e1b64f8fb0b064e19321a4f28db6bff
  • github.com/expressjs/compression/releases/tag/v1.8.2
  • github.com/expressjs/compression/security/advisories/GHSA-vc2v-76pw-4v95
  • nvd.nist.gov/vuln/detail/CVE-2026-87776

Code Behaviors & Features

Detect and mitigate CVE-2026-87776 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.8.2

Fixed versions

  • 1.8.2

Solution

Upgrade to version 1.8.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-401: Missing Release of Memory after Effective Lifetime
  • CWE-459: Incomplete Cleanup

Source file

npm/compression/CVE-2026-87776.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 07 Oct 2026 00:17:36 +0000.