{"id":"CVE-2026-109855","aliases":["CVE-2026-109855","GHSA-qq8j-7v2v-3rwp"],"related":[],"kind":"vulnerability","state":"published","title":"undici WebSocket client vulnerable to Denial of Service via failed HTTP/2 handshake","summary":"undici is an HTTP client library for Node.js. In versions 8.11.0 and 8.11.1, its experimental WebSocket client, which is enabled by default when HTTP/2 is allowed, mishandles a failed WebSocket handshake over HTTP/2: the request is already marked completed, so the abort becomes a no-op and the underlying HTTP/2 stream is left open with no error listener. When a malicious server then destroys the connection, the orphaned stream emits an unhandled error and the Node.js process exits. A remote, unauthenticated server can therefore crash any client that opens a WebSocket to it over HTTP/2, resulting in a denial of service. The issue is fixed in undici 8.11.2, and users should upgrade to 8.11.2 or later. As a workaround, set allowH2 to false to disable HTTP/2 for WebSocket connections, or avoid opening WebSocket connections to untrusted servers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"undici is an HTTP client library for Node.js. In versions 8.11.0 and 8.11.1, its experimental WebSocket client, which is enabled by default when HTTP/2 is allowed, mishandles a failed WebSocket handshake over HTTP/2: the request is already marked completed, so the abort becomes a no-op and the underlying HTTP/2 stream is left open with no error listener. When a malicious server then destroys the connection, the orphaned stream emits an unhandled error and the Node.js process exits. A remote, unauthenticated server can therefore crash any client that opens a WebSocket to it over HTTP/2, resulting in a denial of service. The issue is fixed in undici 8.11.2, and users should upgrade to 8.11.2 or later. As a workaround, set allowH2 to false to disable HTTP/2 for WebSocket connections, or avoid opening WebSocket connections to untrusted servers.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nundici's experimental WebSocket client (enabled by default via `allowH2: true`) crashes the Node.js process when it connects to a malicious server over HTTP/2. If the server answers the WebSocket upgrade with a response that fails handshake validation, undici aborts the request, but the abort is a no-op because the request is already marked completed, so the underlying `ClientHttp2Stream` is left open with no error listener. When the server then destroys the connection, the orphaned stream emits an unhandled `error` and the process exits. A remote, unauthenticated server can therefore deny service to any client that opens a WebSocket to it over HTTP/2. undici 8.11.0 and 8.11.1 are affected; the regression was introduced in 8.11.0.\n\n### Patches\n\nUpgrade to `8.11.2`.\n\n### Workarounds\n\nSet `allowH2: false` to disable HTTP/2 for WebSocket connections, or avoid opening WebSocket connections to untrusted servers, until upgrading.","format":"markdown","source":"ghsa"}],"published":"2026-10-15T08:12:51.245Z","modified":"2026-10-27T16:15:05.346Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-248","CWE-754"],"affected":[{"ranges":[{"type":"semver","introduced":"8.11.0","fixed":"8.11.2","status":"affected"},{"type":"semver","version":"8.11.2","status":"unaffected"}],"vendor":"undici","product":"undici","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.11.0","status":"affected","fixed":"8.11.2"}],"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"8.11.0","fixed":"8.11.2"}],"vendor":"nodejs","product":"undici","cpe":"cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-qq8j-7v2v-3rwp","tags":["mitigation","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-109855","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/pull/5873","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/commit/dd28c5c55f4a25f7c441fd4365b1191f96c3b8bf","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/releases/tag/v8.11.2","tags":["web"],"sources":["ghsa"]}],"credits":["kjsik11","mcollina","jasnell","metcoder95","UlisesGascon","ronag"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-15T14:21:59.498Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-109855","url":"https://www.cve.org/CVERecord?id=CVE-2026-109855","licence":"CVE Terms of Use","modified":"2026-10-15T14:22:28.644Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qq8j-7v2v-3rwp","url":"https://github.com/advisories/GHSA-qq8j-7v2v-3rwp","licence":"CC-BY-4.0","modified":"2026-10-27T16:15:05.346Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-109855","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-109855","licence":"Public domain","modified":"2026-10-19T20:46:49.400Z"}],"updatedAt":"2026-11-25T22:59:44.859Z","epss":{"score":0.00279,"percentile":0.2181,"date":"2026-12-01T12:00:22.000Z"}}