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

Published Sep 11, 2026
·
Updated

Impact

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.

Patches

Users should upgrade to 1.8.2.

Workarounds

None.

Other sources

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.

— MITRE

compression vulnerable to Denial of Service via memory leak on premature response close

— Microsoft

Affected Software

3 affected componentsFixes available
npm/compression<1.8.2
npm/compression<1.8.2
1.8.2
IBM CyberFraud<=1.0.0 - 1.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/compression to a version that resolves this vulnerability.

    Fixed in 1.8.2
  2. Upgrade

    Upgrade compression to a version that resolves this vulnerability.

    Fixed in 1.8.2

Event History

Sep 11, 2026
CVE Published
via MITRE·11:24 AM
Data Sourced
via MITRE·11:24 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·11:41 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:16 PM
DescriptionSeverityWeakness
Sep 17, 2026
Data Sourced
via Microsoft·08:05 AM
DescriptionSeverityWeakness
Oct 2, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Oct 5, 2026
Advisory Published
via GitHub·11:28 PM
Data Sourced
via GitHub·11:28 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

Who can exploit this issue?

A remote, unauthenticated attacker can exploit it by making requests that receive compressed responses and aborting the connection before those responses finish sending. Repeating this can exhaust server memory and crash the process.

2

Are applications affected without special configuration?

Yes. The advisory states that all applications using the compression middleware are affected; no special configuration or attacker privileges are required.

3

What should teams do if they cannot patch immediately?

The provided information identifies upgrading to compression 1.8.2 or later as the remediation. It does not provide a documented configuration workaround or mitigation for unpatched deployments.

4

How can I determine whether my application is vulnerable?

Check whether the application uses the npm compression middleware and whether its installed version is earlier than 1.8.2. Applications using compression before 1.8.2 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203