{"id":"GHSA-92pp-h63x-v22m","summary":"@hono/node-server: Middleware bypass via repeated slashes in serveStatic","details":"## 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` =\u003e matches `/admin/*`\n- `//admin/secret.txt` =\u003e 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.","aliases":["CVE-2026-39406"],"modified":"2026-04-09T00:59:13.838147207Z","published":"2026-04-08T00:16:39Z","related":["CGA-33f9-cxc3-pfp4"],"database_specific":{"github_reviewed_at":"2026-04-08T00:16:39Z","nvd_published_at":"2026-04-08T15:16:14Z","severity":"MODERATE","cwe_ids":["CWE-22"],"github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/honojs/node-server/security/advisories/GHSA-92pp-h63x-v22m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39406"},{"type":"WEB","url":"https://github.com/honojs/node-server/commit/025c30f55d589ddbe6048b151d77e904f67a8cc2"},{"type":"PACKAGE","url":"https://github.com/honojs/node-server"},{"type":"WEB","url":"https://github.com/honojs/node-server/releases/tag/v1.19.13"}],"affected":[{"package":{"name":"@hono/node-server","ecosystem":"npm","purl":"pkg:npm/%40hono/node-server"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.13"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-92pp-h63x-v22m/GHSA-92pp-h63x-v22m.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}