Skip to content

CVE-2026-54286 Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)

MediumCVSS 5.9 EPSS 0.43%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
npm hono(npm) < 4.12.25 4.12.25 Fixed
honojs hono = < 4.12.25 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
honojs hono = < 4.12.25 No fix listed
npm hono(npm) < 4.12.25 4.12.25

References