{"id":"GHSA-wc8c-qw6v-h7f6","revision":"7baea637e2224b73bb9fc2dd28794473","records":[{"revision":"7baea637e2224b73bb9fc2dd28794473","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-wc8c-qw6v-h7f6","aliases":["CVE-2026-29087"],"title":"@hono/node-server has authorization bypass for protected static paths via encoded slashes in Serve Static Middleware","description":"## Summary\n\nWhen 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.\n\nIn 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.\n\n## Details\n\nThe 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.\n\nExample request:\n\n- `/admin%2Fsecret.html`\n\nThis may:\n- fail to match middleware intended for `/admin/*`, but\n- still be resolved by the static handler as `/admin/secret.html` under the configured static root.\n\nThis does not allow access outside the configured static root and is not a path traversal vulnerability.\n\n## Impact\n\nAn unauthenticated attacker could bypass route-based authorization protections for protected static resources by supplying paths containing encoded slashes.\n\nApplications relying solely on route-based middleware to protect static subpaths under the same static root may have exposed those resources.","state":0,"publishedAt":"2026-03-04T20:05:49+00:00","modifiedAt":"2026-09-10T03:50:41.5829665+00:00","affected":[{"ecosystem":"npm","name":"@hono/node-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.19.10"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/honojs/node-server/security/advisories/GHSA-wc8c-qw6v-h7f6","https://nvd.nist.gov/vuln/detail/CVE-2026-29087","https://github.com/honojs/node-server/commit/455015be1697dd89974a68b70350ea7b2d126d2e","https://github.com/honojs/node-server"],"sourceUrl":"https://github.com/advisories/GHSA-wc8c-qw6v-h7f6","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-wc8c-qw6v-h7f6","identifiers":["GHSA-wc8c-qw6v-h7f6","CVE-2026-29087"]},"retained":false,"historicalAffected":[]}],"coverage":[]}