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

Published Sep 11, 2026
·
Updated

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.

Affected Software

1 affected component
npm/compression<1.8.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade compression (Node.js/Express compression middleware) 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

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