Skip to main content
← All vulnerabilities
CVE-2026-1526GHSA-VRM6-8VPV-QV8Q

undici is vulnerable to Unbounded Memory Consumption in undici WebSocket permessage-deflate Decompression

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.24.0, 7.24.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • undici

    Version range not reported

  • undicinpm

    fixed in 6.24.0

  • undicinpm

    From 7.0.0 · fixed in 7.24.0

References 4

GitHub · nodejs/undici

hackerone.com

cna.openjsf.org

datatracker.ietf.org