Authentication Bypass Using an Alternate Path or Channel Affecting hono package, versions <4.13.16


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-HONO-22549653
  • published14 Nov 2026
  • disclosed12 Nov 2026
  • creditKunalShukla-Al, seslo82, kian0417, Zachary Satterly

Introduced: 12 Nov 2026

NewCVE-2026-126357  (opens in a new tab)
CWE-288  (opens in a new tab)

How to fix?

Upgrade hono to version 4.13.16 or higher.

Overview

hono is an Ultrafast web framework for the Edges

Affected versions of this package are vulnerable to Authentication Bypass Using an Alternate Path or Channel via two flaws in the path-prefix stripping logic of mount() and app.mount(). First, when a dynamic mount prefix such as /api/:tenant/* is used, the prefix is removed by the length of the route pattern string rather than the length of the matched prefix, so a request like /api/a/xxxxx/admin/secret is forwarded to the mounted application as /admin/secret. Second, since 4.12.21, the forwarded path is built from the decoded request path and assigned to url.pathname, which causes a decoded backslash to be normalized to / and .. sequences to be collapsed, so /app/public%5C..%5Cadmin/secret also reaches the mounted application as /admin/secret. In both cases the outer application routes on the original path, so path-scoped middleware such as an authentication check on /app/admin/* does not run, and an unauthenticated client can reach protected routes of the mounted application.

Note: This is only exploitable when mount() or app.mount() is used and authentication or authorization middleware is registered on a sub-path inside the mount prefix in the outer application.

Workaround

Register the authentication middleware inside the mounted application instead of on a sub-path of the outer application's mount prefix.

CVSS Base Scores

version 4.0
version 3.1