npm
CVE-2026-126343
@hono/node-server: Unhandled `ECONNRESET` on the socket during an asynchronous WebSocket upgrade crashes the process
- Severity
- Medium 5.3
- Published
- 12 Nov 2026
- Last changed
- 12 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.1.6
- Exploit chance
- 0.5% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Uncaught exception (CWE-248)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Slow it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L- Also known as
- GHSA-qv5m-9pm6-hqp3
- Sources
- OSV.dev and GitHub
Description
While @hono/node-server waits for the Hono application to handle a WebSocket upgrade request, the socket has no error listener. If the client resets the TCP connection during that time, the resulting ECONNRESET is emitted as an unhandled 'error' event and the process terminates.
The upgrade handler awaits the application before attaching any listener to the socket. When middleware on the upgrade path does asynchronous work, such as an authentication lookup, a connection reset in that window has no handler. If a global uncaughtException handler swallows the error, the pending upgrade is never released and its entry is retained for the lifetime of the process.
The fix attaches error and close listeners to the socket before calling the application, releases the pending upgrade when the socket closes, and skips the handshake on a destroyed socket.
Affected software
| Software | Affected versions |
|---|---|
@hono/node-servernpm · osv:npm:@hono/node-server |
|
About @hono/node-server
- Weekly downloads (npm)
- 105,537,155npm, 22 Nov 2026
Vulnerabilities in @hono/node-server
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-126210@hono/node-server: Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxyMedium 5.3 12 Nov 2026
- CVE-2026-118663@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static pathsMedium 5.3 28 Oct 2026
- GHSA-frvp-7c67-39w9Node.js Adapter for Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)Medium 5.9 21 Jul 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126343
- GitHub Advisory Database https://github.com/advisories/GHSA-qv5m-9pm6-hqp3