CVE-2026-109955
Hono: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths
Description
Summary
serveStatic decodes the request path a second time after Hono has already decoded it for routing. A crafted request can be routed as one path and served as another, so middleware mounted on a static prefix does not run for a file under that prefix.
Details
Hono decodes the request path once before routing. serveStatic decoded it again before resolving the file. With a malformed percent-encoded sequence, the first decode leaves part of the path encoded, the router matches the encoded form, and the second decode resolves the real directory. The file is still resolved inside the configured root; this is not a traversal outside it.
Impact
An unauthenticated attacker may reach static files without the middleware on their prefix running, for example an authentication check. This affects applications that mount middleware on part of the directory served by serveStatic. Applications that serve only public files are not affected.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » honovia npm hono | >= 4.12.4, < 4.13.11 | 4.13.11 |
| org.webjars.npm » honovia npm hono | >= 4.12.4, < 4.13.11 | 4.13.11 |
Blast radius
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 38 |
Most used dependents
- org.mvnpm » zudoku0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2026-111757 | nvd.nist.gov |
| Package | honojs/hono | github.com |
| Web | honojs/hono advisory GHSA-5r4p-p66f-jhc7 | github.com |
| Web | honojs/hono commit 8b05c77 | github.com |
| Web | honojs/hono release v4.13.11 | github.com |
