CVE-2026-126343
@hono/node-server: Unhandled `ECONNRESET` on the socket during an asynchronous WebSocket upgrade crashes the process
Impact
@hono/node-server allows running the Hono application on Node.js. From 2.0.0 until 2.1.6, the WebSocket upgrade handler waits for the Hono application to finish asynchronous middleware or handler work without first attaching an error listener to the socket. If an unauthenticated client resets the TCP connection during that window, the socket emits an unhandled ECONNRESET error and terminates the Node.js process. If a global uncaughtException handler suppresses termination, the pending upgrade waiter is not released and repeated requests can grow the heap. This affects applications that enable WebSocket support and perform asynchronous work on the upgrade path. This issue is fixed in version 2.1.6.
An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: low risk of outages.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @hono/node-server | >= 2.0.0, < 2.1.6 | 2.1.6 |
Affected products · Honojs
| Product | Affected versions |
|---|---|
| Node-server | from 2.0.0, before 2.1.6 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/honojs/node-server/security/advisories/GHSA-qv5m-9pm6-hqp3
- https://github.com/honojs/node-server/commit/61cc0267e613e684401f17c27538ba3bf97339a4
- https://github.com/honojs/node-server/releases/tag/v2.1.6
- https://github.com/advisories/GHSA-qv5m-9pm6-hqp3