{"id":"CVE-2026-39406","aliases":["CVE-2026-39406","GHSA-92pp-h63x-v22m"],"related":[],"kind":"vulnerability","state":"published","title":"@hono/node-server has a middleware bypass via repeated slashes in serveStatic","summary":"@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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"## 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` => matches `/admin/*`\n- `//admin/secret.txt` => 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"@hono/node-server permite ejecutar la aplicación Hono en Node.js. Antes de la versión 1.19.13, una inconsistencia en el manejo de rutas en serveStatic permite acceder a archivos estáticos protegidos mediante el uso de barras repetidas (//) en la ruta de la solicitud. Cuando un middleware basado en rutas (p. ej., /admin/*) se utiliza para la autorización, el router puede no coincidir con rutas que contienen barras repetidas, mientras que serveStatic las resuelve como rutas normalizadas. Esto puede llevar a una omisión del middleware. Esta vulnerabilidad se corrige en la versión 1.19.13.","source":"nvd"}],"published":"2026-04-08T00:16:39.000Z","modified":"2026-09-10T03:51:01.299Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 1.19.13","status":"affected"}],"vendor":"honojs","product":"node-server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.13"}],"ecosystem":"npm","package":"@hono/node-server","purl":"pkg:npm/%40hono/node-server","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.19.12"}],"vendor":"hono","product":"node-server","cpe":"cpe:2.3:a:hono:node-server:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/honojs/node-server/security/advisories/GHSA-92pp-h63x-v22m","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39406","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/honojs/node-server/commit/025c30f55d589ddbe6048b151d77e904f67a8cc2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/honojs/node-server","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/honojs/node-server/releases/tag/v1.19.13","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-08T15:17:32.143Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39406","url":"https://www.cve.org/CVERecord?id=CVE-2026-39406","licence":"CVE Terms of Use","modified":"2026-04-08T15:17:38.121Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-92pp-h63x-v22m","url":"https://github.com/advisories/GHSA-92pp-h63x-v22m","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:01.299Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39406","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39406","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:18.282Z","epss":{"score":0.00391,"percentile":0.35375,"date":"2026-12-01T12:00:22.000Z"}}