Skip to content

build(deps): bump @hono/node-server from 1.19.17 to 2.1.6 - #555

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/hono/node-server-2.1.3
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/hono/node-server-2.1.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @hono/node-server from 1.19.17 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\secret reached 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-5p4w

A 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 in c.req.url, bypassing Origin checks

Affects: upgradeWebSocket. The URL of an upgrade request was built by resolving the request-target against the Host header, so a request-target such as //attacker.example/ws set the host of c.req.url to a client-chosen value while routing still saw /ws. An application that compared Origin with the origin of c.req.url could be bypassed by a page on another site. GHSA-7v5p-43qr-wch5

The host of upgrade requests now comes from the Host header, as for ordinary requests.

Unhandled ECONNRESET on the socket during an asynchronous WebSocket upgrade crashes the process

Affects: 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-hqp3

Error 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-server v1.19.18. Users of upgradeWebSocket are encouraged to upgrade to this version.

v2.1.5

What's Changed

New Contributors

Full Changelog: honojs/node-server@v2.1.4...v2.1.5

v2.1.4

What's Changed

Full Changelog: honojs/node-server@v2.1.3...v2.1.4

v2.1.3

Security fixes

serveStatic decodes the request path a second time, leading to bypass of middleware on static paths

Affects: @hono/node-server/serve-static. Fixes serveStatic decoding 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
  • 123f782 2.1.6
  • cfaa79f Merge commit from fork
  • 61cc026 Merge commit from fork
  • a152a45 test: wait for the first chunk before sending the second in the readable-stre...
  • fb97395 Merge commit from fork
  • 4b47a0d 2.1.5
  • e77824a fix(serve-static): only serve GET and HEAD requests (#405)
  • 1b6e6bf fix(listener): abort the request signal when an HTTP/2 client resets the stre...
  • d57ed9b 2.1.4
  • 92b014c chore: allow hono v5 as a peer dependency (#406)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 28, 2026
@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
warden-prod Error Error Nov 25, 2026 6:57pm UTC

Request Review

@sentry-junior sentry-junior Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one can't merge as-is. v2 removed the Vercel adapter (honojs/node-server#335), and the ./vercel subpath is gone from the package exports. apps/warden-service/api/index.ts still does import { handle } from '@hono/node-server/vercel', so the service entrypoint will fail to resolve after this bump.

The upstream migration note says the old adapter was just a thin wrapper around getRequestListener. Swapping in getRequestListener(app.fetch) from @hono/node-server (or a small local handle helper) should keep traceRequest/prepareVercelRequest working as they do now. Push that to this branch, or close this and do the bump by hand alongside the import change. The serveStatic security fix doesn't affect us since we don't use serve-static, so there's no rush to land it in a broken state.

The Node >=20 floor in v2 matches our engines and the Node 24 CI, so that part is fine.

@sentry-junior sentry-junior Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't merge as is. v2 removed the @hono/node-server/vercel entrypoint, and apps/warden-service/api/index.ts still imports handle from it. That's why typecheck fails (TS2307: Cannot find module '@hono/node-server/vercel') and the warden-prod Vercel deploy is red.

Upstream suggests one of two fixes in the v2.0.0 notes. You can drop the adapter and export the app's fetch handler directly, since Vercel's current Node runtime no longer needs it. Or you can keep the current shape with a local shim: export const handle = (app) => getRequestListener(app.fetch), with getRequestListener imported from @hono/node-server. The shim is the smaller change, because traceRequest and prepareVercelRequest both wrap the Node (req, res) handler. After that, check that /health and a webhook route still work on the preview deploy.

Nothing else here worries me. The v2 Node 20+ floor matches our engines and the Node 24 used in CI. examples/self-hosted/server.ts only uses serve, which is unchanged.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1512644. Configure here.

Comment thread apps/warden-service/package.json Outdated
"dependencies": {
"@ai-sdk/gateway": "^3.0.173",
"@hono/node-server": "^1.19.17",
"@hono/node-server": "^2.1.3",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vercel adapter breaks on v2

High Severity

@hono/node-server v2 removed the @hono/node-server/vercel handle export used by the hosted function, so that entrypoint cannot load. The v2 request adapter also no longer reads incoming.rawBody, so prepareVercelRequest cannot restore Vercel-pre-parsed bodies and POST routes would see empty payloads.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1512644. Configure here.

Bumps [@hono/node-server](https://github.com/honojs/node-server) from 1.19.17 to 2.1.6.
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](honojs/node-server@v1.19.17...v2.1.6)

---
updated-dependencies:
- dependency-name: "@hono/node-server"
  dependency-version: 2.1.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title build(deps): bump @hono/node-server from 1.19.17 to 2.1.3 build(deps): bump @hono/node-server from 1.19.17 to 2.1.6 Nov 25, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/hono/node-server-2.1.3 branch from f840f99 to 425f7a4 Compare November 25, 2026 18:56

This branch had an error being deployed

1 failed and 1 active deployments
Preview – warden — 425f7a43 Deployed Nov 25, 2026 by vercel[bot]
Preview – warden-prod — 425f7a43 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants