MEDIUM · CVSS 3.1 5.3 EPSS 0.5% · 40th percentile CWE-248

CVE-2026-126343: @hono/node-server: Unhandled `ECONNRESET` on the socket during an asynchronous WebSocket upgrade crashes the process

Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-qv5m-9pm6-hqp3

Summary

@hono/node-server lacks an error listener on the socket while waiting to handle asynchronous WebSocket upgrades. Engineering teams using affected versions should update to the patched release immediately.

Who is affected

Unauthenticated attackers can terminate the Node.js process by sending a WebSocket upgrade request and prematurely resetting the TCP connection during asynchronous middleware execution. If global handlers suppress the crash, repeated requests will cause a memory leak and grow the heap over time.

Exploitability

The vulnerability is remotely exploitable over a network with low complexity and requires no privileges or user interaction, resulting in a Medium severity availability impact (CVSS 3.1 base score 5.3). The current EPSS score is 0.005, and CISA KEV status is false, indicating no known active exploitation.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm @hono/node-server >= 2.0.0, < 2.1.6 2.1.6 npm install @hono/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityLow

FAQ

What causes the process to crash?

An unhandled 'ECONNRESET' event is emitted on the socket if the client resets the TCP connection before the asynchronous application upgrade handler attaches an error listener.

Which versions of @hono/node-server are affected?

Versions introduced from 2.0.0 up to, but not including, 2.1.6 are affected.

Is authentication required to exploit this vulnerability?

No, an unauthenticated client can trigger the issue by sending a WebSocket upgrade request and resetting the connection.

Original advisory description
### Summary 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. ### Details 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. ### Impact An unauthenticated client can terminate the server process with a single connection by sending a WebSocket upgrade request and resetting the connection before the application has responded. Where the crash is suppressed, repeated requests grow the heap. This affects applications that enable WebSocket support in `@hono/node-server` and run asynchronous middleware or handlers on the upgrade path.

References

Source records: GHSA-qv5m-9pm6-hqp3 (OSV.dev) · EPSS by FIRST, 2026-11-21.