{"id":"CVE-2026-126343","aliases":["CVE-2026-126343","GHSA-qv5m-9pm6-hqp3"],"related":[],"kind":"vulnerability","state":"published","title":"@hono/node-server: Unhandled `ECONNRESET` on the socket during an asynchronous WebSocket upgrade crashes the process","summary":"@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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWhile `@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.\n\n### Details\n\nThe 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.\n\nThe 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.\n\n### Impact\n\nAn 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.\n\nThis affects applications that enable WebSocket support in `@hono/node-server` and run asynchronous middleware or handlers on the upgrade path.","format":"markdown","source":"ghsa"}],"published":"2026-11-12T21:27:05.380Z","modified":"2026-11-13T20:18:29.750Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.1.6","status":"affected"}],"vendor":"honojs","product":"node-server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.1.6"}],"ecosystem":"npm","package":"@hono/node-server","purl":"pkg:npm/%40hono/node-server","source":"ghsa"}],"references":[{"url":"https://github.com/honojs/node-server/security/advisories/GHSA-qv5m-9pm6-hqp3","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/node-server/commit/61cc0267e613e684401f17c27538ba3bf97339a4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/node-server/releases/tag/v2.1.6","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/node-server","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-13T19:43:20.061Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-126343","url":"https://www.cve.org/CVERecord?id=CVE-2026-126343","licence":"CVE Terms of Use","modified":"2026-11-13T19:44:35.522Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qv5m-9pm6-hqp3","url":"https://github.com/advisories/GHSA-qv5m-9pm6-hqp3","licence":"CC-BY-4.0","modified":"2026-11-12T21:45:03.406Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-126343","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126343","licence":"Public domain","modified":"2026-11-13T20:18:29.750Z"}],"updatedAt":"2026-11-25T22:59:50.568Z","epss":{"score":0.00453,"percentile":0.41073,"date":"2026-12-01T12:00:22.000Z"}}