Description (CNA)
@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 (CNA)
| Vendor / product | Versions |
|---|---|
| honojs / node-server | affected >= 2.0.0, < 2.0.10 |
CWE
CWE-401, CWE-770
References
- https://github.com/honojs/node-server/security/advisories/GHSA-9mqv-5hh9-4cgg
- https://github.com/honojs/node-server/commit/3a21938c418340e980cb7ffa88e78369f78392d1
- https://github.com/honojs/node-server/releases/tag/v2.0.10
ADP enrichment
No English description supplied.
No references supplied.