Packages / @hono/node-server / Security

HighVulnerabilityGHSA-wc8c-qw6v-h7f6CVE-2026-29087Published 4 Mar 2026

@hono/node-server has authorization bypass for protected static paths via encoded slashes in Serve Static Middleware

Affected releases · @hono/node-server

  • 1.x1.0.0 – 1.19.9Fixed in 1.19.10
  • 0.6.x and older0.2.0 – 0.6.0No fix, no longer updated

On 1.x, the newest line:

npm install @hono/node-server@1.19.10
2.x
  1. Not affected

    2.0.0 – 2.1.5

    18 releases, latest

1.x
  1. Affected

    1.0.0 – 1.19.9

    67 releases

  2. Fixed

    1.19.10 – 1.19.17

    7 releases

0.x
  1. Affected

    0.2.0 – 0.6.0

    10 releases

102 stable releases of @hono/node-server, oldest to newest, one row per major.

Is your project affected?

Paste your package.json, or type the range you declare for @hono/node-server. It is read in your browser and sent nowhere.

What happens

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.