CVE-2026-1526: undici is vulnerable to Unbounded Memory Consumption in undici WebSocket permessage-deflate Decompression
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.
Security readout for executives and security teams
Plain-English summary
CVE-2026-1526 can crash Node.js processes that use undici as a WebSocket client. If the client accepts compressed WebSocket messages from a malicious or compromised server, a small message can expand heavily in memory and exhaust the process. The impact is availability loss, not data theft or code execution based on the provided sources.
Executive priority
Prioritize remediation for internet-facing or automation-heavy systems that connect to external WebSocket services. The business risk is service disruption from process crashes, especially where a single Node.js process handles important workflows or availability commitments.
Technical view
The issue is in undici WebSocket permessage-deflate decompression. PerMessageDeflate.decompress() accumulates decompressed chunks and concatenates them without enforcing a decompressed-size limit. A remote server can trigger unbounded memory consumption after permessage-deflate negotiation. CVSS is 7.5 high: network reachable, low complexity, no privileges, no user interaction, availability-only impact.
Likely exposure
Exposure is most likely in Node.js services, CLIs, agents, or integrations using affected undici versions as WebSocket clients to connect to untrusted, user-controlled, third-party, or compromised servers with permessage-deflate enabled.
Exploitation context
The bundle does not show active exploitation, and KEV is false. Exploitation requires a malicious WebSocket server or a compromised upstream endpoint that can negotiate permessage-deflate and send compressed frames that decompress far beyond expected size.
Researcher notes
Focus triage on client-side WebSocket usage, not generic HTTP usage alone. The vulnerable condition depends on permessage-deflate negotiation and unbounded decompressed output. Evidence supports denial of service only; the provided sources do not support confidentiality, integrity, or code execution claims.
Mitigation direction
Upgrade undici to 6.24.0, 7.24.0, or later fixed vendor packages.
Apply relevant Red Hat advisories where undici is supplied through Red Hat products.
Review vendor guidance before relying on configuration-only workarounds.
Restrict outbound WebSocket clients to trusted endpoints where feasible.
Monitor Node.js process memory and restart behavior during remediation.
Validation and detection
Inventory package-lock, pnpm-lock, yarn.lock, and SBOMs for undici versions.
Identify code paths using undici WebSocket client functionality.
Confirm whether WebSocket connections can negotiate permessage-deflate.
Check container, OS, and Red Hat package advisories for bundled undici exposure.
Verify upgraded deployments no longer include vulnerable undici ranges.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-409: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-409 · source CWE mapping
Improper Handling of Highly Compressed Data (Data Amplification)
Improper Handling of Highly Compressed Data (Data Amplification) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Allocation of Resources Without Limits or Throttling
Allocation of Resources Without Limits or Throttling represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.