Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade undici to version 7.30.4, 8.14.1 or higher.
undici is an An HTTP/1.1 client, written from scratch for Node.js
Affected versions of this package are vulnerable to Infinite loop via unbounded HTTP/2 reconnection in lib/dispatcher/client-h2.js when a malicious or compromised HTTP/2 origin holds a request open without ever opening a stream - either by advertising SETTINGS_MAX_CONCURRENT_STREAMS = 0 or while an extended CONNECT request (such as a WebSocket handshake) waits for the peer's SETTINGS - and then repeatedly sends GOAWAY or closes the connection. Each time, undici immediately reconnects and replays the held request without charging it against the existing replay budget, so the request never settles while connection churn consumes CPU. In one reproduction, a single 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 WebSocket path requires allowH2: true.
Note: On undici 7.x, the WebSocket/extended CONNECT path requires the caller to set allowH2: true.
Configure the affected dispatcher with allowH2: false to disable HTTP/2.