Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. undici
  4. ›
  5. CVE-2026-1526

CVE-2026-1526: Undici has Unbounded Memory Consumption in WebSocket permessage-deflate Decompression

March 13, 2026

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.

References

  • cna.openjsf.org/security-advisories.html
  • datatracker.ietf.org/doc/html/rfc7692
  • github.com/advisories/GHSA-vrm6-8vpv-qv8q
  • github.com/nodejs/undici
  • github.com/nodejs/undici/security/advisories/GHSA-vrm6-8vpv-qv8q
  • hackerone.com/reports/3481206
  • nvd.nist.gov/vuln/detail/CVE-2026-1526
  • owasp.org/www-community/attacks/Denial_of_Service

Code Behaviors & Features

Detect and mitigate CVE-2026-1526 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.24.0, all versions starting from 7.0.0 before 7.24.0

Fixed versions

  • 6.24.0
  • 7.24.0

Solution

Upgrade to versions 6.24.0, 7.24.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)

Source file

npm/undici/CVE-2026-1526.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 14 Mar 2026 12:18:24 +0000.