compression is vulnerable to Denial of Service (DoS)
75
High Risk
The compression middleware creates a native zlib stream to compress each response but never destroys it when the response closes early. When a client aborts the connection mid-response, the stream's native memory is never reclaimed, and a race also leaves streams created after the close event unreleased. Repeated aborted requests to any compressed endpoint accumulate leaked zlib memory until the server runs out of memory and crashes. The fix registers a response close handler that destroys the stream and drops any stream created after close.
You are affected if you are using a version that falls within the vulnerable range.
compression is vulnerable to Denial of Service (DoS) in versions 1.0.0 - 1.8.1.
Upgrade the compression library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.