CVE-2026-126357 Hono: `mount()` and `app.mount()` can forward a path that bypasses middleware scoped inside the mount prefix
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.13.16, mount() and app.mount() can remove a dynamic mount prefix using the route-pattern length rather than the matched-prefix length, allowing a crafted path to be forwarded as a protected inner route while the outer application routes the original path. Since 4.12.21, rebuilding the forwarded URL from the decoded pathname can also convert a decoded backslash to a slash and collapse parent-directory segments, again causing the mounted application to receive a protected path. An unauthenticated client can use either applicable path transformation to reach a mounted route without authentication or authorization middleware scoped to a subpath inside the mount prefix. This issue is fixed in version 4.13.16.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm hono(npm) | < 4.13.16 | 4.13.16 | Fixed |
| honojs hono | = < 4.13.16 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm hono(npm) | < 4.13.16 | 4.13.16 |
| honojs hono | = < 4.13.16 | No fix listed |
References
- https://github.com/honojs/hono/security/advisories/GHSA-4m76-xfj5-7975 vendor-advisory
- https://github.com/honojs/hono/commit/34f90432a1794b28e52802670efcd01963f716d6 patch
- https://github.com/honojs/hono/releases/tag/v4.13.16
- github.com
- github.com product
- ENISA EUVD EUVD-2026-124737 third-party-advisory