All vulnerabilities

npm

CVE-2026-126357

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

Severity
Medium 5.3
Published
12 Nov 2026
Last changed
12 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
4.13.16
Exploit chance
0.4% in the next 30 daysHigher than 34% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Authentication bypass by an alternate path (CWE-288)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Also known as
GHSA-4m76-xfj5-7975
Sources
OSV.dev and GitHub

Description

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.

  • 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.
  • 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.
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

Register the authentication middleware inside the mounted application.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
hononpm · osv:npm:hono
  • Every version before 4.13.16

About hono

Weekly downloads (npm)
113,589,642npm, 23 Nov 2026

References