CVE-2026-137486: Hono 4.13.16 before 4.13.18 Middleware Bypass via mount() Path Forwarding
Hono from 4.13.16 before 4.13.18 contains an authorization bypass vulnerability in mount() and app.mount() that forwards an incorrect path when a custom getPath adds a prefix. Unauthenticated attackers can request crafted paths that the mounted application resolves differently, reaching routes protected by path-scoped middleware such as 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?
Deployments using Hono versions from 4.13.16 before 4.13.18 are affected when they use mount() or app.mount() with a custom getPath function that adds a prefix. The practical exposure is to mounted routes protected by path-scoped middleware, such as authentication checks.
What does an attacker need to exploit the issue?
An attacker can exploit it remotely without authentication or user interaction by sending crafted request paths. Exploitation depends on the mounted application resolving the incorrectly forwarded path differently from the path used for middleware protection.
Is a default Hono application affected?
The provided information identifies the vulnerable condition as use of mount() or app.mount() with a custom getPath that adds a prefix. It does not establish that applications without this configuration are affected.
What should be done if an affected configuration cannot be updated immediately?
The provided data does not specify a workaround. Prioritize reviewing mounted applications that use a prefix-adding custom getPath and the path-scoped authentication middleware intended to protect their routes.