CVE-2026-39407 Hono has a middleware bypass via repeated slashes in serveStatic
MediumCVSS 5.3
EPSS 0.48%
- 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.12.12, a path handling inconsistency in serveStatic allows protected static files to be accessed by using repeated slashes (//) in the request path. When route-based middleware (e.g., /admin/*) is used for authorization, the router may not match paths containing repeated slashes, while serveStatic resolves them as normalized paths. This can lead to a middleware bypass. This vulnerability is fixed in 4.12.12.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| hono | <= 4.12.11 | after 4.12.11 | Fixed |
| npm hono(npm) | < 4.12.12 | 4.12.12 | Fixed |
| honojs hono | = < 4.12.12 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| honojs hono | = < 4.12.12 | No fix listed |
| npm hono(npm) | < 4.12.12 | 4.12.12 |
| hono | <= 4.12.11 | No fix listed |
References
- https://github.com/honojs/hono/security/advisories/GHSA-wmmm-f939-6g9c vendor-advisory
- https://github.com/honojs/hono/commit/9aff14bd727f8b0435c963363fd803260e7b8e3c patch
- https://github.com/honojs/hono/releases/tag/v4.12.12 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product