@hono/node-server: Unauthenticated memory-leak DoS via aborted WebSocket handshake
honojs node-server
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @hono/node-server npm |
|
|
Original 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.
From the CVE record · GitHub_M