GHSA-vc2v-76pw-4v95: High severity npm/compression vulnerability

Published Oct 5, 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.

Affected Software

1 affected componentFixes available
npm/compression<1.8.2
1.8.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

Oct 5, 2026
Advisory Published
via GitHub·11:28 PM
Data Sourced
via GitHub·11:28 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who is exposed to this denial-of-service issue?

All applications using the compression package in versions earlier than 1.8.2 are affected. An attacker can reach the vulnerable behavior remotely without authentication or user interaction.

2

What does an attacker need to do to trigger the memory leak?

The attacker must request content that is being sent as a compressed response, then abort the connection before that response finishes. Each aborted response leaves its native zlib stream allocated, and repeated requests can exhaust available memory.

3

Is there a mitigation if an immediate upgrade is not possible?

No workaround is provided. Upgrade the compression package to version 1.8.2.

4

How can I determine whether an application may be affected?

Check whether the application depends on the npm compression package and whether the installed version is earlier than 1.8.2. Applications using compressed responses with an affected version should be treated as vulnerable.

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