Description
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.
Published: 2026-09-11
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Upgrade Immediately
AI Analysis

Impact

The compression middleware creates a zlib stream whenever a response is compressed. If a client aborts the connection while the stream is still writing data, the stream is never destroyed, leaving the native zlib memory allocated. Each aborted request therefore adds a small but permanent memory reservation. Over time an attacker can intentionally disconnect many compressed responses and exhaust the process memory, causing the Node.js or Express server to crash. The flaw is-401 and CWE-459.

Affected Systems

Any Node.js or Express application that includes the compression middleware in a version earlier than 1.8.2 is vulnerable, regardless of the underlying application logic or server configuration. All applications using this module should be considered affected.

Risk and Exploitability

The CVSS score of 7.5 indicates a high risk to availability. EPSS data is not available, so the likelihood of exploitation is unknown, but the vulnerability can be triggered by an unauthenticated HTTP client without additional privileges, and it is not listed in the CISA KEV catalog. The attack requires only a standard request to a compressed endpoint and an early disconnect; successful exploitation results in denial of service for all users of the affected server.

Generated by OpenCVE AI on September 11, 2026 at 13:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the compression middleware to version 1.8.2 or later.
  • Remove or disable the middleware if compression is not required for the application.
  • Implement request rate limiting or connection throttling on endpoints that use compression to reduce the impact of repeated pre‑abort attacks.

Generated by OpenCVE AI on September 11, 2026 at 13:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 11 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 11 Sep 2026 11:45:00 +0000

Type Values Removed Values Added
Description 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.
Title compression vulnerable to Denial of Service via memory leak on premature response close
Weaknesses CWE-401
CWE-459
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-09-11T13:36:30.531Z

Reserved: 2026-09-09T08:26:59.067Z

Link: CVE-2026-87776

cve-icon Vulnrichment

Updated: 2026-09-11T13:33:21.900Z

cve-icon NVD

Status : Received

Published: 2026-09-11T12:16:52.530

Modified: 2026-09-11T14:17:36.507

Link: CVE-2026-87776

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-11T14:00:08Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-459

    Incomplete Cleanup