chore(deps): bump @hono/node-server from 2.0.10 to 2.1.6 in /packages/host-service
Bumps @hono/node-server from 2.0.10 to 2.1.6.
Release notes
Sourced from @hono/node-server's releases.
v2.1.6
Security fixes
This release includes fixes for the following security issues:
Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy
Affects: all requests. The raw request-target was passed to the WHATWG URL parser, which treats a backslash in the path as
/and resolves..segments, so/admin\secretreached the application as/admin/secret. A reverse proxy that forwards the backslash unchanged applied its path-based rules to the original path. GHSA-jpvv-r467-5p4wA request whose path contains a raw backslash is now rejected with
400 Bad Request, for HTTP/1.1, HTTP/2 and WebSocket upgrades. A percent-encoded backslash (%5C) and a backslash in the query string are still accepted.WebSocket upgrade request-target starting with
//replaces the host inc.req.url, bypassingOriginchecksAffects:
upgradeWebSocket. The URL of an upgrade request was built by resolving the request-target against theHostheader, so a request-target such as//attacker.example/wsset the host ofc.req.urlto a client-chosen value while routing still saw/ws. An application that comparedOriginwith the origin ofc.req.urlcould be bypassed by a page on another site. GHSA-7v5p-43qr-wch5The host of upgrade requests now comes from the
Hostheader, as for ordinary requests.Unhandled
ECONNRESETon the socket during an asynchronous WebSocket upgrade crashes the processAffects:
upgradeWebSocket. While the application handled an upgrade request, the socket had no error listener. A client that reset the connection during asynchronous middleware caused an unhandled'error'event and terminated the process. GHSA-qv5m-9pm6-hqp3Error and close events on the socket are now handled while the application runs, and a pending upgrade is released when the socket closes.
The backslash fix also ships in
@hono/node-serverv1.19.18. Users ofupgradeWebSocketare encouraged to upgrade to this version.v2.1.5
What's Changed
- fix(listener): abort the request signal when an HTTP/2 client resets the stream by
@affanmominin honojs/node-server#404- fix(serve-static): only serve GET and HEAD requests by
@usualomain honojs/node-server#405New Contributors
@affanmominmade their first contribution in honojs/node-server#404Full Changelog: https://github.com/honojs/node-server/compare/v2.1.4...v2.1.5
v2.1.4
What's Changed
- chore: allow hono v5 as a peer dependency by
@yusukebein honojs/node-server#406Full Changelog: https://github.com/honojs/node-server/compare/v2.1.3...v2.1.4
v2.1.3
Security fixes
serveStaticdecodes the request path a second time, leading to bypass of middleware on static pathsAffects:
@hono/node-server/serve-static. FixesserveStaticdecoding an already-decoded path, where a crafted request could be routed as one path and served as another, skipping middleware mounted on a static prefix. GHSA-rmxm-3fg6-px4f
... (truncated)
Commits
123f7822.1.6cfaa79fMerge commit from fork61cc026Merge commit from forka152a45test: wait for the first chunk before sending the second in the readable-stre...fb97395Merge commit from fork4b47a0d2.1.5e77824afix(serve-static): only serve GET and HEAD requests (#405)1b6e6bffix(listener): abort the request signal when an HTTP/2 client resets the stre...d57ed9b2.1.492b014cchore: allow hono v5 as a peer dependency (#406)- Additional commits viewable in compare view