@hono/node-server
2.1.9 · 17 Nov 2026MIT105.3M / weekRepositorynpmAtom feed
In short
2 security
- Security
Unhandled
ECONNRESETon a non-WebSocketUpgraderequest crashes the process when WebSocket support is enabled - Security
Affects: applications that use the
websocketoption. A request with anUpgradeheader other thanwebsocketleft the socket without an error listener. A client that reset the connection at that point crashed the process. Version 2.1.10 closed the leak for these requests but a reset that arrived before the400response was written still crashed. GHSA-qhm2-7mpr-ghjp
Release note
Security fix
Unhandled ECONNRESET on a non-WebSocket Upgrade request crashes the process when WebSocket support is enabled
Affects: applications that use the websocket option. A request with an Upgrade header other than websocket left the socket without an error listener. A client that reset the connection at that point crashed the process. Version 2.1.10 closed the leak for these requests but a reset that arrived before the 400 response was written still crashed. GHSA-qhm2-7mpr-ghjp
The error listener is now attached as soon as the socket is handed to the upgrade listener.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.