@hono/node-server: Authorization bypass for protected static paths via encoded slashes in Serve Static Middleware
honojs node-server
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @hono/node-server npm |
|
|
Original description
@hono/node-server allows running the Hono application on Node.js. Prior to version 1.19.10, 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. This issue has been patched in version 1.19.10.
From the CVE record · GitHub_M