Skip to content

fix(deps): update dependency @hono/node-server to v1.19.13 [security] - autoclosed#4361

Closed
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-hono-node-server-vulnerability
Closed

fix(deps): update dependency @hono/node-server to v1.19.13 [security] - autoclosed#4361
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-hono-node-server-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 4, 2026

This PR contains the following updates:

Package Change Age Confidence
@hono/node-server 1.19.91.19.13 age confidence

GitHub 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 %2F as a literal string when matching routes, while the static handler decodes %2F into / before resolving the filesystem path.

Example request:

  • /admin%2Fsecret.html

This may:

  • fail to match middleware intended for /admin/*, but
  • still be resolved by the static handler as /admin/secret.html under 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 serveStatic allows 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, while serveStatic resolves them as normalized paths. This can lead to a middleware bypass.

Details

The routing layer and serveStatic handle repeated slashes differently.

For example:

  • /admin/secret.txt => matches /admin/*
  • //admin/secret.txt => may not match /admin/*

This inconsistency allows a request such as:

GET //admin/secret.txt

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 serveStatic together with route-based middleware for access control.


Release Notes

honojs/node-server (@​hono/node-server)

v1.19.13

Compare Source

v1.19.12

Compare Source

What's Changed

Full Changelog: honojs/node-server@v1.19.11...v1.19.12


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Mar 4, 2026
@renovate renovate bot force-pushed the renovate/npm-hono-node-server-vulnerability branch from c994b9f to 5b302c6 Compare March 13, 2026 10:51
@renovate renovate bot changed the title fix(deps): update dependency @hono/node-server to v1.19.10 [security] fix(deps): update dependency @hono/node-server to v1.19.10 [security] - autoclosed Mar 27, 2026
@renovate renovate bot closed this Mar 27, 2026
@renovate renovate bot deleted the renovate/npm-hono-node-server-vulnerability branch March 27, 2026 02:13
@renovate renovate bot changed the title fix(deps): update dependency @hono/node-server to v1.19.10 [security] - autoclosed fix(deps): update dependency @hono/node-server to v1.19.12 [security] Mar 30, 2026
@renovate renovate bot reopened this Mar 30, 2026
@renovate renovate bot force-pushed the renovate/npm-hono-node-server-vulnerability branch 2 times, most recently from 34642b1 to 6354329 Compare April 1, 2026 17:22
@ArjixWasTaken
Copy link
Copy Markdown
Member

We don't serve static resources, so this is not a fix.

@renovate renovate bot changed the title fix(deps): update dependency @hono/node-server to v1.19.12 [security] fix(deps): update dependency @hono/node-server to v1.19.13 [security] Apr 8, 2026
@renovate renovate bot force-pushed the renovate/npm-hono-node-server-vulnerability branch from 6354329 to 54549c2 Compare April 8, 2026 02:42
@renovate renovate bot force-pushed the renovate/npm-hono-node-server-vulnerability branch from 54549c2 to dca5301 Compare April 8, 2026 08:26
@renovate renovate bot changed the title fix(deps): update dependency @hono/node-server to v1.19.13 [security] fix(deps): update dependency @hono/node-server to v1.19.13 [security] - autoclosed Apr 11, 2026
@renovate renovate bot closed this Apr 11, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant