---
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'
  - url: 'https://access.redhat.com/errata/RHSA-2026:72712'
  - url: 'https://access.redhat.com/errata/RHSA-2026:72722'
  - url: >-
      https://github.com/expressjs/compression/commit/151f63e91e1b64f8fb0b064e19321a4f28db6bff
  - url: 'https://github.com/expressjs/compression/releases/tag/v1.8.2'
  - url: 'https://github.com/advisories/GHSA-vc2v-76pw-4v95'
  - url: 'https://access.redhat.com/errata/RHSA-2026:76788'
  - url: 'https://access.redhat.com/errata/RHSA-2026:79088'
  - url: 'https://access.redhat.com/errata/RHSA-2026:79366'
  - url: 'https://access.redhat.com/errata/RHSA-2026:79546'
  - url: 'https://access.redhat.com/errata/RHSA-2026:77656'
  - url: 'https://access.redhat.com/errata/RHSA-2026:84734'
  - url: 'https://access.redhat.com/errata/RHSA-2026:87004'
  - url: 'https://access.redhat.com/errata/RHSA-2026:88200'
  - url: 'https://access.redhat.com/errata/RHSA-2026:85846'
  - url: 'https://access.redhat.com/errata/RHSA-2026:87410'
  - url: 'https://access.redhat.com/errata/RHSA-2026:86891'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
  - ghsa
  - npm
epss: 0.00477
epssPercentile: 0.41022
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-11T13:30:04.865391Z'
ingestedAt: '2026-09-11T16:45:47.860Z'
patched:
  - discovery 2
aliases:
  - GHSA-vc2v-76pw-4v95
ecosystem: npm
---

## 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: Node HealthCheck Operator, OpenShift Lightspeed, OpenShift Pipelines, Red Hat Ansible Automation Platform 2, Red Hat build of Apache Camel - HawtIO 4, Red Hat Build of Podman Desktop, … · no fix planned: Red Hat Ansible Automation Platform 2, Red Hat Enterprise Linux AI (RHEL AI) 3, Red Hat Fuse 7, Red Hat OpenShift GitOps, … · updated 2026-10-23 · [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)
- **RHSA-2026:72712** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.1 · released 2026-09-28 · [advisory](https://access.redhat.com/errata/RHSA-2026:72712)
- **RHSA-2026:72722** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.2 · released 2026-09-28 · [advisory](https://access.redhat.com/errata/RHSA-2026:72722)
- **RHSA-2026:76788** · Red Hat · fixed in: Red Hat Developer Hub 1.10 · released 2026-10-06 · [advisory](https://access.redhat.com/errata/RHSA-2026:76788)
- **RHSA-2026:79088** · Red Hat · fixed in: Red Hat Developer Hub 1.10 · released 2026-10-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:79088)
- **RHSA-2026:79366** · Red Hat · fixed in: Red Hat Quay 3.10 · released 2026-10-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:79366)
- **RHSA-2026:79546** · Red Hat · fixed in: Red Hat Quay 3.12 · released 2026-10-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:79546)
- **RHSA-2026:77656** · Red Hat · fixed in: Red Hat Quay 3.9 · released 2026-10-07 · [advisory](https://access.redhat.com/errata/RHSA-2026:77656)
- **RHSA-2026:84734** · Red Hat · fixed in: Red Hat OpenShift AI 3.4 · released 2026-10-19 · [advisory](https://access.redhat.com/errata/RHSA-2026:84734)
- **RHSA-2026:87004** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.6 for RHEL 9 · released 2026-10-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:87004)
- **RHSA-2026:88200** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.2 · released 2026-10-22 · [advisory](https://access.redhat.com/errata/RHSA-2026:88200)
- **RHSA-2026:85846** · Red Hat · fixed in: Red Hat Migration Toolkit 1.8 · released 2026-10-20 · [advisory](https://access.redhat.com/errata/RHSA-2026:85846)
- **RHSA-2026:87410** · Red Hat · fixed in: Red Hat OpenShift AI 2.25 · released 2026-10-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:87410)
- **RHSA-2026:86891** · Red Hat · fixed in: Red Hat OpenShift AI 3.5 · released 2026-10-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:86891)

## Package advisory (CVE-2026-87776)

Affected packages:

- `compression < 1.8.2`

Patched in:

- `compression 1.8.2`

Source: https://github.com/advisories/GHSA-vc2v-76pw-4v95
