cve.bz

CVE-2026-126357

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

5.3 mediumFix available

Medium (5.3) in honojs hono. Fixed in hono 4.13.16.

On this page
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.13.16, mount() and app.mount() can remove a dynamic mount prefix using the route-pattern length rather than the matched-prefix length, allowing a crafted path to be forwarded as a protected inner route while the outer application routes the original path. Since 4.12.21, rebuilding the forwarded URL from the decoded pathname can also convert a decoded backslash to a slash and collapse parent-directory segments, again causing the mounted application to receive a protected path. An unauthenticated client can use either applicable path transformation to reach a mounted route without authentication or authorization middleware scoped to a subpath inside the mount prefix. This issue is fixed in version 4.13.16.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CWE
CWE-288 Authentication Bypass Using an Alternate Path or Channel
OWASP Top 10
A07:2025 Authentication Failures
Published
Assigned by
GitHub_M (CNA)
NVD analysis
Not in the NVD yet
Record from
the CVE List, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-126357 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-126357?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-126357?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-126357 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-126357

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-126357](https://cve.bz/cve/badge/CVE-2026-126357.svg)](https://cve.bz/cve/CVE-2026-126357)

HTML:

<a href="https://cve.bz/cve/CVE-2026-126357"><img src="https://cve.bz/cve/badge/CVE-2026-126357.svg" alt="CVE-2026-126357"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
honojs hono< 4.13.16

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4m76-xfj5-7975npmhono<4.13.164.13.16

Attack patterns (CAPEC)

  • CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium
  • CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON