Hono: `mount()` and `app.mount()` can forward a path that bypasses middleware scoped inside the mount prefix

State
Published
Severity
5.3 Medium
Published
Nov 12, 2026
Updated
Nov 17, 2026
Reserved
Nov 10, 2026

Read the record on cve.org

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.

ProductVersions
hono honojs< 4.13.16 Affected

Weaknesses

  • CWE-288 Authentication Bypass Using an Alternate Path or Channel

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.