MEDIUM · CVSS 3.1 5.3 EPSS 0.5% · 33th percentile CWE-288

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

Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-4m76-xfj5-7975

Summary

Hono's mount() and app.mount() can forward a crafted path in a way that bypasses path-scoped middleware registered on the outer application inside the mount prefix. Teams using affected Hono versions and relying on that middleware for authentication or authorization should upgrade to 4.13.16 or later.

Who is affected

Affected deployments are Hono applications that use mount() or app.mount() and depend on middleware registered on a sub-path inside the mount prefix for authentication or authorization. A crafted request can reach a route of the mounted application while the outer application's path-scoped middleware does not run. Applications that do not use these mount APIs or that enforce authentication inside the mounted application are not described as affected.

Exploitability

The CVSS 3.1 vector is 5.3 with AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, indicating a network-reachable, low-complexity, unauthenticated issue with low confidentiality impact only. EPSS is 0.004 with percentile 0.349, and CISA KEV is no, so there is no documented evidence of active exploitation.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm hono >= 0, < 4.13.16 4.13.16 npm install [email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityLow
IntegrityNone
AvailabilityNone

FAQ

Which Hono versions are affected?

The affected npm package range is hono introduced at 0 and fixed in 4.13.16, so versions before 4.13.16 are in the affected range.

Is this vulnerability known to be exploited in the wild?

No. CISA KEV is no, and EPSS is 0.004 with percentile 0.349; active exploitation is not documented in the provided record.

What should be done if the application relies on path-scoped auth middleware inside a mount prefix?

Upgrade hono to 4.13.16 or later. If that cannot be done immediately, register the authentication middleware inside the mounted application as described in the workaround.

Original advisory description
### Summary `mount()` and `app.mount()` remove the mount prefix from the request path and forward the rest to the mounted application. Two mistakes in that step let a crafted request reach a route of the mounted application that the outer application protects with path-scoped middleware, such as an authentication check on `/app/admin/*`. The outer application routes on the original path, so the middleware does not run. ### Details 1. **Dynamic prefix** (all affected versions): for a mount such as `/api/:tenant/*`, the prefix was removed by the length of the route pattern, not of the matched prefix. A request with a longer or shorter first segment is cut in the middle, so `/api/a/xxxxx/admin/secret` reaches the mounted application as `/admin/secret`. 2. **Re-normalization** (since 4.12.21): the forwarded path was built from the decoded request path and assigned to `url.pathname`, which turns a decoded backslash into `/` and collapses `..`. `/app/public%5C..%5Cadmin/secret` reaches the mounted application as `/admin/secret`. The fix removes the prefix segment by segment from the raw pathname, using the matched parameter values for its length. Route patterns that cannot be handled safely now throw: duplicate parameter names and a wildcard inside the last segment such as `/assets*`. A trailing slash in an `app.mount()` prefix no longer removes an extra segment. ### Impact An unauthenticated client can reach a route of a mounted application that the outer application protects with path-scoped middleware. This affects applications that use `mount()` or `app.mount()` and rely on middleware registered on a sub-path inside the mount prefix for authentication or authorization. ### Workarounds Register the authentication middleware inside the mounted application.

References

Source records: GHSA-4m76-xfj5-7975 (OSV.dev) · EPSS by FIRST, 2026-11-26.