CVE-2026-12151: undici WebSocket client - Denial of Service
- Cve: CVE-2026-12151
- Name: undici WebSocket client - Denial of Service
- Description: Impact: The undici WebSocket client enforces maxPayloadSize on the cumulative byte count of fragments in a message but does not enforce a limit on the number of fragments. A malicious WebSocket server can stream many small or empty continuation frames that each pass per-frame and cumulative-size validation, collectively causing unbounded memory growth in the client process. The result is memory exhaustion and a denial of service. Affected applications are those using the undici WebSocket client (new WebSocket(...)) or the WebSocketStream API that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint. All releases starting at undici 6.17.0 are affected. Patches: Upgrade to undici >= 6.26.0, >= 7.28.0, or >= 8.5.0. Workarounds: No workaround is available. The fix must be applied through an upgrade.
- Impact: Malicious servers can cause unbounded memory growth in clients, leading to denial of service via memory exhaustion.
- Remediation: Upgrade to undici >= 6.26.0, >= 7.28.0, or >= 8.5.0.
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00789
- Epss percentile: 0.57167
- Assignee: ce714d77-add3-4f53-aff5-83d477b104bb
- Published at: 2026-06-17T17:16:42Z
- Age in days: 160
- Modified at: 2026-09-11T13:17:05Z
- Patch available: yes
- References total: 31
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-12151
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-400 | Uncontrolled Resource Consumption |
| CWE-770 | Allocation of Resources Without Limits or Throttling |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| nodejs:undici | >= 8.0.0, < 8.5.0; >= 7.0.0, < 7.28.0; >= 6.17.0, < 6.27.0 | no | nvd | /v1/products/nodejs/undici |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| nodejs/undici | commit, fix, package, releases, security_advisory | yes | /v1/repositories/nodejs/undici |
Index
- Repositories: 1035
- Repositories high signal: 704
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts