---
id: CVE-2026-87776
title: compression is a Node.js and Express compression middleware
summary: >-
  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 destro…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-401
  - CWE-459
  - CWE-772
vendor: compression
product: compression
affected:
  - compression < 1.8.2
published: '2026-09-11'
updated: '2026-09-16'
sourceUpdated: '2026-09-16T19:40:00.317'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-87776'
references:
  - url: 'https://cna.openjsf.org/security-advisories.html'
    label: ce714d77-add3-4f53-aff5-83d477b104bb
  - url: >-
      https://github.com/expressjs/compression/security/advisories/GHSA-vc2v-76pw-4v95
    label: ce714d77-add3-4f53-aff5-83d477b104bb
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-87776.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-87776'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2531852'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-87776'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-87776'
  - url: 'https://access.redhat.com/errata/RHSA-2026:69289'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00363
epssPercentile: 0.30151
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-11T13:30:04.865391Z'
ingestedAt: '2026-09-11T16:45:47.860Z'
patched:
  - discovery 2
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Migration Toolkit for Containers, Node HealthCheck Operator, OpenShift Lightspeed, OpenShift Pipelines, Red Hat Ansible Automation Platform 2, Red Hat build of Apache Camel - HawtIO 4, … · no fix planned: Red Hat Ansible Automation Platform 2, Red Hat Fuse 7, Secrets Management Console for Red Hat OpenShift, Red Hat Ceph Storage 4, … · updated 2026-09-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-87776.json)
- **RHSA-2026:69289** · Red Hat · fixed in: Red Hat Discovery 2 · released 2026-09-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:69289)
