# GHSA-W33R-F3GW-3GCH: undici vulnerable to Denial of Service via unbounded HTTP/2 reconnection of held requests

- Database: GitHub
- Severity: CVSS 7.5 (High)
- Published: 2026-12-04
- Modified: 2026-12-04

## Tracked as

- [CVE-2026-137987](https://cve.now/CVE-2026-137987.md): undici denial of service in HTTP/2 request handling

## Affected versions

- undici (npm): from 8.0.0, fixed in 8.14.1
- undici (npm): from 7.17.0, fixed in 7.30.4

## Description

### Impact

A malicious or compromised HTTP/2 origin can hold an undici request open without ever opening a stream, then repeatedly close the connection, driving unbounded reconnection and high client CPU use. A request is held when the peer advertises `SETTINGS_MAX_CONCURRENT_STREAMS = 0`, or when an extended CONNECT request (including a WebSocket handshake) is waiting for the peer's SETTINGS. In either state, a GOAWAY or a connection close (FIN) starts the retry cycle: undici immediately reconnects and replays the held request without charging it against the existing GOAWAY replay budget, so the request stays pending while connection churn consumes CPU. The reporter reproduced the zero-stream GOAWAY path on undici 8.12.4, where one bodyless `Client.request()` opened 3,773 sessions in 400 ms without settling. With undici 8.x defaults, `new WebSocket('wss://host')` can negotiate HTTP/2 and reach this path; on undici 7.x the extended CONNECT and WebSocket path requires the caller to set `allowH2: true`. The impact is availability of the undici client process only; no confidentiality or integrity impact.

### Patches

Upgrade to `7.30.4` or `8.14.1`, which charge a request held without a stream against the replay budget when the HTTP/2 session receives a GOAWAY or its socket closes. A held request may be replayed once on a fresh connection; repeated closures then fail it instead of reconnecting indefinitely.

### Workarounds

Configure the affected dispatcher with `allowH2: false` to disable HTTP/2.

## References

- https://github.com/nodejs/undici/security/advisories/GHSA-w33r-f3gw-3gch

Page: https://cve.now/GHSA-W33R-F3GW-3GCH

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
