{"id":"CVE-2026-54286","published":"2026-06-22T17:14:40Z","modified":"2026-06-23T14:07:34Z","title":"Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)","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.25, on Windows hosts, an encoded backslash (%5C) in the request path decodes to \\, which the Windows path resolver treats as a separator. serve-static then resolves a single URL segment such as admin\\secret.txt into a nested file under the root and serves it, letting an attacker read static files meant to be protected behind prefix-mounted middleware. This vulnerability is fixed in 4.12.25.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00433,"percentile":0.29372,"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-wwfh-h76j-fc44","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":5.87},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"honojs","affectedVersions":[{"vendor":"honojs","product":"hono","versions":["< 4.12.25"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T14:07:25.570505Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"hono","vulnerableRanges":["<4.12.25"],"patched":["4.12.25"],"from":["GHSA-wwfh-h76j-fc44"],"provenance":"source"}],"summary":{"text":"Hono's serve-static middleware on Windows hosts contains a path traversal flaw in versions before 4.12.25, where an encoded backslash (%5C) in the request path decodes to a backslash that the Windows path resolver treats as a separator. An attacker with network access and no authentication or user interaction, against a deployment using the default configuration, can send a crafted request such as one with an encoded backslash in a single URL segment to read static files that were meant to be protected by prefix-mounted middleware.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:50Z"},"euvd":{"id":"EUVD-2026-38327","exploited":false,"provenance":"source"}}