CVEvulnerability

CVE-2026-1526

7.5 HIGH Published 2026-03-12 Modified 2026-09-04 Official page ↗
Status
Modified
Published
2026-03-12
Last modified
2026-09-04
Assigner
ce714d77-add3-4f53-aff5-83d477b104bb
CVSS 3.1 (ce714d77-add3-4f53-aff5-83d477b104bb)
7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 3.1 (0b0ca135-0b70-47e7-9f44-1890c2a1c46c)
7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-409, CWE-770

Description

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 configurations

• nodejs undici (< 6.24.0) • nodejs undici (>= 7.0.0 < 7.24.0)

Related

Weakness · CWE (2)

  • CWE-409 Improper Handling of Highly Compressed Data (Data Amplification) weakness
  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References