Home › CVE › JavaScript
CVE-2026-126357 — Hono: `mount()` and `app.mount()` can forward a path that bypasses middleware scoped inside the mount prefix
One of 5 npm:hono vulnerabilities published together by GitHub Advisory: our article covers all of them.
JavaScriptWebVulnerabilitiesResearch article
HonoJS Hono: Authentication Bypass via Path Manipulation [CVE-2026-126357]
| CVE | CVE-2026-126357 |
|---|---|
| Vendor and product | npm:hono; honojs hono |
| Published | November 22, 2026 06:30 UTC |
| Research cut-off | November 22, 2026 06:15 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-11-17); CISA KEV catalog; GitHub advisory (2026-11-12); FIRST EPSS (2026-11-21) |
Executive summary
CVE-2026-126357 impacts the HonoJS Hono framework, with a CVSS 3.1 score of 5.3 MEDIUM, assigned by security-advisories@github.com. The issue allows attackers to bypass path-scoped middleware, possibly accessing protected routes. The CVE is not listed in the CISA Known Exploited Vulnerabilities Catalog, which the source says is not evidence that it has not been exploited [2]. The primary recommendation is to upgrade to version 4.13.16, the fixed version listed in the advisory [3].
Key points
- CVE-2026-126357 affects HonoJS Hono versions prior to 4.13.16 [1, 3].
- The flaw enables attackers to bypass path-scoped middleware, which could grant access to protected routes [3].
- The CVSS 3.1 score is 5.3 MEDIUM, assigned by security-advisories@github.com [1].
- The sources do not mention any exploitation [2].
- The main action is to upgrade to version 4.13.16 [3].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-126357 | HonoJS | Hono | CWE-288 | 5.3 MEDIUM, scored by security-advisories@github.com | 2026-11-13T00:20:10 | 2026-11-17T19:17:50 | Deferred |
Vulnerability description
The issue arises from improper handling of URL paths when using the mount() or app.mount() methods, which could allow a malicious request to bypass middleware that is scoped to a specific path [3]. This could lead to unauthorized access to routes of the mounted application that are otherwise protected by the outer application's middleware [3].
Attack surface and exploitation prerequisites
The CVSS vector indicates that the vulnerability is accessible over the network (AV:N), requires no user privileges (PR:N), and no user interaction (UI:N). The potential impact includes a loss of confidentiality (C:L), but no effect on integrity (I:N) or availability (A:N) [1].
Impact analysis
An unauthenticated client could potentially access routes of a mounted application that are protected by middleware registered on a sub-path within the mount prefix [3]. The CVSS vector confirms a potential loss of confidentiality (C:L), with no impact on integrity (I:N) or availability (A:N) [1].
Affected products and versions
| Affected | Fixed |
|---|---|
| hono < 4.13.16 | 4.13.16 |
Exploitation and threat intelligence status
CVE-2026-126357 is not included in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-22 [2]. An EPSS score estimates a 0.40% chance of exploitation within the next 30 days [4].
Detection and exposure assessment
Users can determine if they are at risk by checking whether their installed version of Hono is below 4.13.16 [3].
Remediation
The patched version is 4.13.16 [3]. The advisory suggests setting up authentication middleware directly within the mounted application to prevent unauthorized access to protected routes [3].
Remediation checklist
Evidence gaps
- The sources do not describe the internal workings of the affected component.
- The sources do not mention alternative solutions.
- The sources do not outline the attack lifecycle.
- The sources do not provide indicators of compromise.
- The sources do not list a fixed version for all affected products.
References
- CVE-2026-126357 record. NIST National Vulnerability Database (NVD), 2026-11-17. https://nvd.nist.gov/vuln/detail/CVE-2026-126357. Accessed 2026-11-22.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-22. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-22.
- GHSA-4m76-xfj5-7975 / CVE-2026-126357 — Hono: `mount()` and `app.mount()` can forward a path that bypasses middleware scoped inside the mount prefix. GitHub Security Advisory Database, 2026-11-12. https://github.com/advisories/GHSA-4m76-xfj5-7975. Accessed 2026-11-22.
- EPSS score for CVE-2026-126357. FIRST, 2026-11-21. https://api.first.org/data/v1/epss?cve=CVE-2026-126357. Accessed 2026-11-22.
Severity breakdown
Medium · 5.3
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- low on confidentiality, none on integrity and availability
Weakness
- CWE-288: Authentication Bypass Using an Alternate Path or Channel
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| hono (npm) | < 4.13.16 | 4.13.16 |
| honojs hono | < 4.13.16 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/honojs/hono/commit/34f90432a1794b28e52802670efcd01963f716d6
- github.com/honojs/hono/releases/tag/v4.13.16
Other references
Details
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
- 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/secretreaches 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/secretreaches 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.
Affected
- npm:hono
- honojs hono
Frequently asked questions
What is CVE-2026-126357?
CVE-2026-126357 impacts the HonoJS Hono framework, with a CVSS 3.1 score of 5.3 MEDIUM, assigned by security-advisories@github.com. The issue allows attackers to bypass path-scoped middleware, possibly accessing protected routes. The CVE is not listed in the CISA Known Exploited Vulnerabilities Catalog, which the source says is not evidence that it has not been exploited. Weakness type: Authentication Bypass Using an Alternate Path or Channel (CWE-288).
How severe is CVE-2026-126357?
CVE-2026-126357 has a CVSS 3.1 base score of 5.3 (medium), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-126357 being exploited?
Not as far as is known: CVE-2026-126357 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-126357?
hono (npm) < 4.13.16 (fixed in 4.13.16); honojs hono < 4.13.16.
How do I fix CVE-2026-126357?
Upgrade Hono to version 4.13.16 or newer. Implement authentication middleware directly within the mounted application to prevent unauthorized access to protected routes. Verify installed versions to ensure they are not in the vulnerable range.