{"id":"CVE-2026-73565","aliases":["CVE-2026-73565","GHSA-9mqv-5hh9-4cgg"],"related":[],"kind":"vulnerability","state":"published","title":"@hono/node-server: Unauthenticated memory-leak DoS via aborted WebSocket handshake","summary":"@hono/node-server allows running the Hono application on Node.js. From 2.0.0 until 2.0.10, a WebSocket upgrade request to an upgradeWebSocket route with a missing or malformed Sec-WebSocket-Key header causes src/websocket.ts to retain the request's IncomingMessage in waiterMap and leave waitForWebSocket pending because ws.handleUpgrade emits no connection event. The aborted handshake therefore has no cleanup path, allowing an unauthenticated attacker to flood a public route, cause unbounded memory growth, and eventually make the service unavailable. This issue is fixed in version 2.0.10.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@hono/node-server allows running the Hono application on Node.js. From 2.0.0 until 2.0.10, a WebSocket upgrade request to an upgradeWebSocket route with a missing or malformed Sec-WebSocket-Key header causes src/websocket.ts to retain the request's IncomingMessage in waiterMap and leave waitForWebSocket pending because ws.handleUpgrade emits no connection event. The aborted handshake therefore has no cleanup path, allowing an unauthenticated attacker to flood a public route, cause unbounded memory growth, and eventually make the service unavailable. This issue is fixed in version 2.0.10.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nA WebSocket upgrade request to an `upgradeWebSocket` route with a missing or malformed `Sec-WebSocket-Key` header leaks memory permanently. The request's `IncomingMessage` is retained in an internal map and a pending promise is never settled, even though no connection is established. Since the route is reachable pre-handshake without authentication, an unauthenticated attacker can flood it to gradually exhaust memory.\n\n## Details\n\nThe built-in WebSocket helper cleans up its internal map only on a successful handshake or when the route guard rejects the request. When `ws` aborts the handshake because `Sec-WebSocket-Key` is missing or malformed, no `connection` event is emitted, so neither cleanup path runs and the entry is retained forever. A present-but-malformed key leaks identically, so a proxy that only checks for the header's presence does not mitigate it.\n\n## Impact\n\nAn unauthenticated attacker can flood any public `upgradeWebSocket` route with malformed-key upgrade requests, causing unbounded memory growth and eventual loss of availability. No confidentiality or integrity impact.\n\nReported by @TarPeg007.","format":"markdown","source":"ghsa"},{"lang":"es","text":"@hono/node-server permite ejecutar la aplicación Hono en Node.js. Desde la 2.0.0 hasta la 2.0.10, una solicitud de actualización de WebSocket a una ruta upgradeWebSocket con un encabezado Sec-WebSocket-Key faltante o malformado hace que src/websocket.ts retenga el IncomingMessage de la solicitud en waiterMap y deje waitForWebSocket pendiente porque ws.handleUpgrade no emite ningún evento de conexión. El handshake abortado, por lo tanto, no tiene una ruta de limpieza, lo que permite a un atacante no autenticado inundar una ruta pública, causar un crecimiento de memoria ilimitado y, finalmente, dejar el servicio no disponible. Este problema está solucionado en la versión 2.0.10.","source":"nvd"}],"published":"2026-07-21T22:04:27.000Z","modified":"2026-10-24T15:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"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:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-401","CWE-770"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.0.10","status":"affected"}],"vendor":"honojs","product":"node-server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.10"}],"ecosystem":"npm","package":"@hono/node-server","purl":"pkg:npm/%40hono/node-server","source":"ghsa"}],"references":[{"url":"https://github.com/honojs/node-server/security/advisories/GHSA-9mqv-5hh9-4cgg","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/node-server/commit/3a21938c418340e980cb7ffa88e78369f78392d1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/node-server/releases/tag/v2.0.10","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/node-server","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-14T16:45:01.113Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-73565","url":"https://www.cve.org/CVERecord?id=CVE-2026-73565","licence":"CVE Terms of Use","modified":"2026-08-14T16:45:25.711Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9mqv-5hh9-4cgg","url":"https://github.com/advisories/GHSA-9mqv-5hh9-4cgg","licence":"CC-BY-4.0","modified":"2026-08-13T17:55:56.703Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-73565","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73565","licence":"Public domain","modified":"2026-10-24T15:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:32.815Z","epss":{"score":0.00388,"percentile":0.35064,"date":"2026-12-01T12:00:22.000Z"}}