fix(deps): update dependency @hono/node-server to v1.19.13 [security] - autoclosed#4361
Closed
renovate[bot] wants to merge 1 commit intomasterfrom
Closed
fix(deps): update dependency @hono/node-server to v1.19.13 [security] - autoclosed#4361renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
c994b9f to
5b302c6
Compare
34642b1 to
6354329
Compare
Member
|
We don't serve static resources, so this is not a fix. |
6354329 to
54549c2
Compare
54549c2 to
dca5301
Compare
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:
1.19.9→1.19.13GitHub Vulnerability Alerts
CVE-2026-29087
Summary
When using @hono/node-server's static file serving together with route-based middleware protections (e.g. protecting
/admin/*), inconsistent URL decoding can allow protected static resources to be accessed without authorization.In particular, paths containing encoded slashes (
%2F) may be evaluated differently by routing/middleware matching versus static file path resolution, enabling a bypass where middleware does not run but the static file is still served.Details
The routing layer and the node-server static handler normalize request paths differently. The router preserves
%2Fas a literal string when matching routes, while the static handler decodes%2Finto/before resolving the filesystem path.Example request:
/admin%2Fsecret.htmlThis may:
/admin/*, but/admin/secret.htmlunder the configured static root.This does not allow access outside the configured static root and is not a path traversal vulnerability.
Impact
An unauthenticated attacker could bypass route-based authorization protections for protected static resources by supplying paths containing encoded slashes.
Applications relying solely on route-based middleware to protect static subpaths under the same static root may have exposed those resources.
CVE-2026-39406
Summary
A path handling inconsistency in
serveStaticallows protected static files to be accessed by using repeated slashes (//) in the request path.When route-based middleware (e.g.,
/admin/*) is used for authorization, the router may not match paths containing repeated slashes, whileserveStaticresolves them as normalized paths. This can lead to a middleware bypass.Details
The routing layer and
serveStatichandle repeated slashes differently.For example:
/admin/secret.txt=> matches/admin/*//admin/secret.txt=> may not match/admin/*This inconsistency allows a request such as:
to bypass middleware registered on
/admin/*and access protected files.Impact
An attacker can access static files that are intended to be protected by route-based middleware by using repeated slashes in the request path.
This can lead to unauthorized access to sensitive files under the static root.
This issue affects applications that rely on
serveStatictogether with route-based middleware for access control.Release Notes
honojs/node-server (@hono/node-server)
v1.19.13Compare Source
v1.19.12Compare Source
What's Changed
Full Changelog: honojs/node-server@v1.19.11...v1.19.12
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.