Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › JavaScript

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

Medium · CVSS 5.3EPSS 0.5% First seen November 12, 2026

One of 5 npm:hono vulnerabilities published together by GitHub Advisory: our article covers all of them.

JavaScriptWebVulnerabilities

Research article

HonoJS Hono: Authentication Bypass via Path Manipulation [CVE-2026-126357]

CVECVE-2026-126357
Vendor and productnpm:hono; honojs hono
PublishedNovember 22, 2026 06:30 UTC
Research cut-offNovember 22, 2026 06:15 UTC
Sources reviewed4: 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 IDVendorProductCWECVSS 3.1PublishedLast ModifiedRecord Status
CVE-2026-126357HonoJSHonoCWE-2885.3 MEDIUM, scored by security-advisories@github.com2026-11-13T00:20:102026-11-17T19:17:50Deferred

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

AffectedFixed
hono < 4.13.164.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

  1. Upgrade Hono to version 4.13.16 or newer [3].
  2. Implement authentication middleware directly within the mounted application to prevent unauthorized access to protected routes [3].
  3. Verify installed versions to ensure they are not in the vulnerable range [3].

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

  1. 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. Vulnerability identification, CVSS scores, affected versions, and references.
  2. 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. Exploitation and threat intelligence status.
  3. 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. Vulnerability description, impact analysis, affected versions, remediation, and workarounds.
  4. 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. Exploitation and threat intelligence status.

Written with AI assistance from the 4 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Severity breakdown

Medium · 5.3 CVSS 3.1 base score from the CNA (github.com)

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

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

Weakness

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

Affected and fixed versions

ProductAffected versionsFixed in
hono (npm)< 4.13.164.13.16
honojs hono< 4.13.16—

From the GitHub Advisory Database and the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain), the GitHub Advisory Database (CC BY 4.0).

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

  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.

Source: GHSA-4m76-xfj5-7975 / CVE-2026-126357, GitHub Advisory Database, licensed CC BY 4.0.

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.

Timeline & sources

References

Related vulnerabilities & news