5.3medium
@hono/node-server: Unauthenticated memory-leak DoS via aborted WebSocket handshake
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-9mqv-5hh9-4cgg
Description
@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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| honojs node-server | >= 2.0.0, < 2.0.10 | CVE List |
| @hono/node-server (npm) | from 2.0.0 before 2.0.10 | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
What each source says
CVE List
@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.
GitHub Advisory Database
Summary
A 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.
Details
The 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.
Impact
An 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.
Reported by @TarPeg007.
NVD (es)
@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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-73565 changed 2026-08-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9mqv-5hh9-4cgg changed 2026-08-13 | CC-BY-4.0 |
| NVD | CVE-2026-73565 changed 2026-10-24 | Public domain |