CVE-2026-137483: Hono 4.13.11 before 4.13.18 Middleware Bypass via serveStatic allowPercentInPath
Hono from 4.13.11 before 4.13.18 contains a middleware bypass vulnerability in serveStatic that allows unauthenticated attackers to skip prefix middleware by exploiting a second path decode when allowPercentInPath is enabled. Attackers can send malformed percent-encoded sequences so the router matches an encoded path while serveStatic serves the real file, bypassing authentication checks.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.13.18
Event History
Frequently Asked Questions
Which deployments are exposed to this bypass?
Affected deployments use Hono versions from 4.13.11 up to, but not including, 4.13.18 and have serveStatic configured with allowPercentInPath enabled. The issue is relevant where prefix middleware, such as authentication checks, protects paths that can be resolved by serveStatic.
What does an attacker need to exploit the issue?
The attacker needs network access to send requests and does not need authentication or user interaction. Exploitation relies on malformed percent-encoded path sequences that cause the router and serveStatic to interpret the path differently.
How can I determine whether my application is affected?
Check the installed Hono version and review serveStatic configuration for allowPercentInPath enabled. Then identify whether prefix middleware is relied upon to restrict access to static files or paths that serveStatic can resolve.
What can be done if upgrading is not immediately possible?
Disable allowPercentInPath in serveStatic where possible. This removes the configuration condition described for the bypass.