Path Handling Inconsistency in Hono Node.js Application by Hono
CVE-2026-39406
5.3MEDIUM
What is CVE-2026-39406?
The Hono Node.js application prior to version 1.19.13 contains a path handling inconsistency that affects the serveStatic functionality. Users can inadvertently access protected static files by utilizing repeated slashes (//) in the request path. This leads to a scenario where authorization middleware, typically applied via route-based patterns (e.g., /admin/*), fails to correctly match paths containing these repeated slashes. Instead, the serveStatic function resolves these slashes, bypassing intended access controls. This vulnerability has been addressed in the release of version 1.19.13.
Affected Version(s)
node-server < 1.19.13
