REDHAT-BUG-2447142: High severity npm/undici vulnerability
The undici WebSocket client is vulnerable to a denial-of-service attack via unbounded memory consumption during permessage-deflate decompression. When a WebSocket connection negotiates the permessage-deflate extension, the client decompresses incoming compressed frames without enforcing any limit on the decompressed data size. A malicious WebSocket server can send a small compressed frame (a "decompression bomb") that expands to an extremely large size in memory, causing the Node.js process to exhaust available memory and crash or become unresponsive.
The vulnerability exists in the PerMessageDeflate.decompress() method, which accumulates all decompressed chunks in memory and concatenates them into a single Buffer without checking whether the total size exceeds a safe threshold.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2447142?
The severity of REDHAT-BUG-2447142 is high, rated at 7.
What vulnerability does REDHAT-BUG-2447142 describe?
REDHAT-BUG-2447142 describes a denial-of-service vulnerability due to unbounded memory consumption in the undici WebSocket client during permessage-deflate decompression.
How do I fix REDHAT-BUG-2447142?
To fix REDHAT-BUG-2447142, update the undici package to the latest version that addresses this vulnerability.
What software is affected by REDHAT-BUG-2447142?
The affected software for REDHAT-BUG-2447142 is npm/undici.
Can REDHAT-BUG-2447142 lead to security issues?
Yes, REDHAT-BUG-2447142 can lead to security issues by allowing an attacker to exploit the vulnerability for denial-of-service attacks.