Repository navigation
Update dependency @hono/node-server to v2.1.6 [SECURITY] - #18682
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
renovate
Bot
force-pushed
the
renovate/npm-hono-node-server-vulnerability
branch
3 times, most recently
from
November 13, 2026 02:09
28e8700 to
6aca826
Compare
renovate
Bot
force-pushed
the
renovate/npm-hono-node-server-vulnerability
branch
from
November 13, 2026 13:14
6aca826 to
19ab5fd
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.4→2.1.6@hono/node-server:
serveStaticdecodes the request path a second time, leading to bypass of middleware on static pathsCVE-2026-118663 / GHSA-rmxm-3fg6-px4f
More information
Details
Summary
serveStaticdecodes the request path a second time after Hono has already decoded it for routing. A crafted request can be routed as one path and served as another, so middleware mounted on a static prefix does not run for a file under that prefix.Details
Hono decodes the request path once before routing.
serveStaticdecoded it again before resolving the file. With a malformed percent-encoded sequence, the first decode leaves part of the path encoded, the router matches the encoded form, and the second decode resolves the real directory. The file is still resolved inside the configured root; this is not a traversal outside it.Impact
An unauthenticated attacker may reach static files without the middleware on their prefix running, for example an authentication check. This affects applications that mount middleware on part of the directory served by
serveStatic. Applications that serve only public files are not affected.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
@hono/node-server: Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy
CVE-2026-126210 / GHSA-jpvv-r467-5p4w
More information
Details
Summary
@hono/node-serverpasses the raw request-target to the WHATWG URL parser, which treats a backslash in the path as/and then resolves..segments. A request for/admin\secretor/public\..\admin/secretreaches the application as/admin/secret. A reverse proxy that follows RFC 3986 forwards the backslash unchanged and applies its path-based rules to the original path, so the request reaches a route the proxy is meant to block.Details
A raw backslash is not allowed in a request-target (RFC 3986, RFC 9112 Section 3.2.1), and RFC 9112 Section 3.2 says a recipient should reject such a request rather than correct it. Proxies such as nginx on Linux, HAProxy and Envoy keep the backslash as an ordinary character, so they and the application see different paths.
The fix responds with
400 Bad Requestto a request whose path contains a raw backslash, for HTTP/1.1, HTTP/2, absolute-form request-targets and WebSocket upgrades. A percent-encoded backslash and a backslash in the query string are still accepted.Impact
An unauthenticated client can reach a route that a reverse proxy, load balancer or WAF in front of the application blocks by path.
This affects applications served by
@hono/node-serverbehind a front component that makes path-based decisions and forwards a backslash unchanged. Access control inside the Hono application, such as middleware on/admin/*, runs on the rewritten path and is not affected.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
honojs/node-server (@hono/node-server)
v2.1.6Compare Source
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.5Compare Source
What's Changed
New Contributors
Full Changelog: honojs/node-server@v2.1.4...v2.1.5
v2.1.4Compare Source
What's Changed
Full Changelog: honojs/node-server@v2.1.3...v2.1.4
v2.1.3Compare Source
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-px4fserveStaticnow rejects request paths that still contain%after decoding. To serve files whose names contain a literal%, setallowPercentInPath: true.The same fix ships in
honov4.13.11.v2.1.2Compare Source
What's Changed
Full Changelog: honojs/node-server@v2.1.1...v2.1.2
v2.1.1Compare Source
What's Changed
Full Changelog: honojs/node-server@v2.1.0...v2.1.1
v2.1.0Compare Source
What's Changed
New Contributors
Full Changelog: honojs/node-server@v2.0.12...v2.1.0
v2.0.12Compare Source
What's Changed
Full Changelog: honojs/node-server@v2.0.11...v2.0.12
v2.0.11Compare Source
What's Changed
Full Changelog: honojs/node-server@v2.0.10...v2.0.11
v2.0.10Compare Source
Security fixes
This release includes a fix for the following security issue:
Unauthenticated memory-leak DoS via aborted WebSocket handshake
Affects:
upgradeWebSocket. A WebSocket upgrade request with a missing or malformedSec-WebSocket-Keyheader leaked the request'sIncomingMessageand left a promise pending, even though no connection was established. Since the route is reachable pre-handshake without authentication, an attacker could flood it to gradually exhaust memory. GHSA-9mqv-5hh9-4cggUsers of
upgradeWebSocketare encouraged to upgrade to this version.v2.0.9Compare Source
What's Changed
New Contributors
Full Changelog: honojs/node-server@v2.0.8...v2.0.9
v2.0.8Compare Source
What's Changed
--no-git-checksoption forpnpm stage publishby @yusukebe in #369Full Changelog: honojs/node-server@v2.0.7...v2.0.8
v2.0.6Compare Source
What's Changed
npby @yusukebe in #361Full Changelog: honojs/node-server@v2.0.5...v2.0.6
v2.0.5Compare Source
Security Fix
Fixed a security issue in Serve Static Middleware where prefix-mounted middleware could be bypassed on Windows. This only affects applications running on Windows that use Serve Static Middleware. Affected users are encouraged to upgrade to this version.
See GHSA-frvp-7c67-39w9 for details.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.