{"id":"CVE-2026-39407","state":"PUBLISHED","title":"Hono has a middleware bypass via repeated slashes in serveStatic","description":"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.","publishedAt":"2026-04-08T14:41:20.301Z","updatedAt":"2026-04-08T16:04:59.862Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["honojs hono"],"affected":[{"vendor":"honojs","product":"hono","versions":[{"version":"< 4.12.12","status":"affected"}]}],"references":["https://github.com/honojs/hono/security/advisories/GHSA-wmmm-f939-6g9c","https://github.com/honojs/hono/commit/9aff14bd727f8b0435c963363fd803260e7b8e3c","https://github.com/honojs/hono/releases/tag/v4.12.12"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:11:50.837Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/39xxx/CVE-2026-39407.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-39407","state":"PUBLISHED","datePublished":"2026-04-08T14:41:20.301Z","dateUpdated":"2026-04-08T16:04:59.862Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-07T00:23:30.594Z"},"containers":{"cna":{"title":"Hono has a middleware bypass via repeated slashes in serveStatic","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"honojs","product":"hono","versions":[{"version":"< 4.12.12","status":"affected"}]}],"references":[{"url":"https://github.com/honojs/hono/security/advisories/GHSA-wmmm-f939-6g9c","name":"https://github.com/honojs/hono/security/advisories/GHSA-wmmm-f939-6g9c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/honojs/hono/commit/9aff14bd727f8b0435c963363fd803260e7b8e3c","name":"https://github.com/honojs/hono/commit/9aff14bd727f8b0435c963363fd803260e7b8e3c","tags":["x_refsource_MISC"]},{"url":"https://github.com/honojs/hono/releases/tag/v4.12.12","name":"https://github.com/honojs/hono/releases/tag/v4.12.12","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-08T14:41:20.301Z"},"source":{"advisory":"GHSA-wmmm-f939-6g9c","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-08T16:04:53.788586Z","id":"CVE-2026-39407","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-08T16:04:59.862Z"}}]}}}