chore(deps): bump @hono/node-server from 2.1.9 to 2.1.11

DE
12h ago
+7-7

Bumps @hono/node-server from 2.1.9 to 2.1.11.

Release notes

Sourced from @​hono/node-server's releases.

v2.1.11

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.

Full Changelog: https://github.com/honojs/node-server/compare/v2.1.10...v2.1.11

v2.1.10

Security fix

WebSocket upgrade listener leaves non-WebSocket Upgrade requests open, leading to socket exhaustion

Affects: applications that use the websocket option. The upgrade listener ignored requests whose Upgrade header was not websocket, so the socket stayed open until the client closed it. A client could hold many connections open this way, and clients that try an HTTP/2 upgrade over plain HTTP hung. GHSA-8wcc-wqxr-28qp

Such a request is now answered with 400 Bad Request and the socket is closed, unless the application registers its own upgrade listener.

Full Changelog: https://github.com/honojs/node-server/compare/v2.1.9...v2.1.10

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by cubic

Updates @hono/node-server from 2.1.9 to 2.1.11 to apply two security fixes for the WebSocket upgrade path.

  • Non-WebSocket Upgrade requests are now answered with 400 Bad Request and closed, preventing socket exhaustion.
  • An ECONNRESET that arrives before that 400 response is written no longer crashes the process.

These changes only affect apps that enable the websocket option.