{"id":"GHSA-92pp-h63x-v22m","revision":"8995ee5de4e843c38deb5bd256251fda","records":[{"revision":"8995ee5de4e843c38deb5bd256251fda","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-92pp-h63x-v22m","aliases":["CVE-2026-39406"],"title":"@hono/node-server: Middleware bypass via repeated slashes in serveStatic","description":"## Summary\n\nA path handling inconsistency in `serveStatic` allows protected static files to be accessed by using repeated slashes (`//`) in the request path.\n\nWhen 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.\n\n## Details\n\nThe routing layer and `serveStatic` handle repeated slashes differently.\n\nFor example:\n\n- `/admin/secret.txt` => matches `/admin/*`\n- `//admin/secret.txt` => may not match `/admin/*`\n\nThis inconsistency allows a request such as:\n\n```\nGET //admin/secret.txt\n```\n\nto bypass middleware registered on `/admin/*` and access protected files.\n\n## Impact\n\nAn attacker can access static files that are intended to be protected by route-based middleware by using repeated slashes in the request path.\n\nThis can lead to unauthorized access to sensitive files under the static root.\n\nThis issue affects applications that rely on `serveStatic` together with route-based middleware for access control.","state":0,"publishedAt":"2026-04-08T00:16:39+00:00","modifiedAt":"2026-09-10T03:51:01.2995517+00:00","affected":[{"ecosystem":"npm","name":"@hono/node-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.19.13"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/honojs/node-server/security/advisories/GHSA-92pp-h63x-v22m","https://nvd.nist.gov/vuln/detail/CVE-2026-39406","https://github.com/honojs/node-server/commit/025c30f55d589ddbe6048b151d77e904f67a8cc2","https://github.com/honojs/node-server","https://github.com/honojs/node-server/releases/tag/v1.19.13"],"sourceUrl":"https://github.com/advisories/GHSA-92pp-h63x-v22m","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-92pp-h63x-v22m","identifiers":["GHSA-92pp-h63x-v22m","CVE-2026-39406"]},"retained":false,"historicalAffected":[]}],"coverage":[]}