{"id":"CVE-2026-39406","published":"2026-04-08T14:34:30Z","modified":"2026-04-08T15:17:38Z","title":"@hono/node-server has a middleware bypass via repeated slashes in serveStatic","vendor":"honojs","product":"node-server","tier":"tail","description":{"text":"@hono/node-server allows running the Hono application on Node.js. Prior to 1.19.13, 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 1.19.13.","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.00425,"percentile":0.28442,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/honojs/node-server/security/advisories/GHSA-92pp-h63x-v22m","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.4,"factors":[{"name":"EPSS percentile","points":5.69},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"honojs","affectedVersions":[{"vendor":"honojs","product":"node-server","versions":["< 1.19.13"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-08T15:17:32.143505Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@hono/node-server","vulnerableRanges":["<1.19.13"],"patched":["1.19.13"],"from":["GHSA-92pp-h63x-v22m"],"provenance":"source"}],"summary":{"text":"The @hono/node-server package, which runs Hono applications on Node.js, contains a path handling flaw in its serveStatic component: the router and static file handler treat repeated slashes (//) in request paths inconsistently. An unauthenticated remote attacker can send a request with repeated slashes to reach protected static files and bypass route-based middleware such as authorization checks on paths like /admin/*, with no user interaction or special configuration required beyond the use of serveStatic.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:51Z"},"euvd":{"id":"EUVD-2026-20491","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-honojs-node-server-cve-2026-29087","parents":[{"from":"CVE-2026-29087","to":"CVE-2026-39406","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@hono/node-server","fromFixed":"1.19.10","toFixed":"1.19.13","daysApart":33},{"kind":"same-code","provenance":"machine","files":["src/serve-static.ts"],"commits":["https://github.com/honojs/node-server/commit/455015be1697dd89974a68b70350ea7b2d126d2e","https://github.com/honojs/node-server/commit/025c30f55d589ddbe6048b151d77e904f67a8cc2"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2026-39406","to":"CVE-2026-118663","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/serve-static.ts"],"commits":["https://github.com/honojs/node-server/commit/982179278529d5673812116b042829f27794966f","https://github.com/honojs/node-server/commit/025c30f55d589ddbe6048b151d77e904f67a8cc2"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-23340","published":"2024-01-22","fixed":"1.4.1","kev":false},{"cve":"CVE-2024-32652","published":"2024-04-19","fixed":"1.10.1","kev":false},{"cve":"CVE-2026-29087","published":"2026-03-06","fixed":"1.19.10","kev":false},{"cve":"CVE-2026-39406","published":"2026-04-08","fixed":"1.19.13","kev":false},{"cve":"CVE-2026-73565","published":"2026-08-13","fixed":"2.0.10","kev":false},{"cve":"CVE-2026-118663","published":"2026-10-28","fixed":"2.1.3","kev":false},{"cve":"CVE-2026-126210","published":"2026-11-12","fixed":"2.1.6","kev":false,"link":{"from":"CVE-2026-39406","to":"CVE-2026-126210","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@hono/node-server","fromFixed":"1.19.13","toFixed":"1.19.18","daysApart":218}]}}],"package":"npm:@hono/node-server"}}