{"id":"CVE-2026-39407","published":"2026-04-08T14:41:20Z","modified":"2026-04-08T16:04:59Z","title":"Hono has a middleware bypass via repeated slashes in serveStatic","vendor":"honojs","product":"hono","tier":"tail","description":{"text":"Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.12, a path handling inconsistency in serveStatic allows protected static files to be accessed by using repeated slashes (//) in the request path. When 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. This vulnerability is fixed in 4.12.12.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00478,"percentile":0.33646,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-wmmm-f939-6g9c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/honojs/hono/commit/9aff14bd727f8b0435c963363fd803260e7b8e3c","tags":["x_refsource_MISC"]},{"url":"https://github.com/honojs/hono/releases/tag/v4.12.12","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":6.73},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"honojs","affectedVersions":[{"vendor":"honojs","product":"hono","versions":["< 4.12.12"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-08T16:04:53.788586Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"hono","vulnerableRanges":["<4.12.12"],"patched":["4.12.12"],"from":["GHSA-wmmm-f939-6g9c"],"provenance":"source"}],"summary":{"text":"The Hono web framework, in versions before 4.12.12, has a path handling flaw in its serveStatic component where repeated slashes in a request path can cause route-based middleware to fail to match, while serveStatic still resolves the path to the protected file. An unauthenticated remote attacker can exploit this over the network by sending a request with repeated slashes (//) in the path, with no user interaction, to access static files that middleware such as /admin/* was meant to protect.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:57Z"},"euvd":{"id":"EUVD-2026-20493","exploited":false,"provenance":"source"}}