CVE-2026-137486 in Honoinfo

Summary

by MITRE • 11/26/2026

Hono from 4.13.16 before 4.13.18 contains an authorization bypass vulnerability in mount() and app.mount() that forwards an incorrect path when a custom getPath adds a prefix. Unauthenticated attackers can request crafted paths that the mounted application resolves differently, reaching routes protected by path-scoped middleware such as authentication checks.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The Hono web framework version 4.13.18 and earlier contains a critical authorization bypass vulnerability within its routing mechanism, specifically affecting the mount() and app.mount() methods when used in conjunction with custom getPath implementations that prepend path prefixes. This flaw stems from an inconsistency in how request paths are resolved and forwarded to mounted sub-applications compared to how they are matched against route definitions protected by middleware. When a developer configures Hono to use a custom function for determining the base path of incoming requests, particularly one that adds or modifies prefix strings, the framework fails to correctly align the internal routing logic with the actual request URI structure in certain edge cases. This misalignment creates a discrepancy between the path used for authentication checks and the path actually processed by the target route handlers within the mounted application.

From a technical perspective, this vulnerability is classified as CWE-287: Improper Authentication because it allows unauthenticated users to bypass access controls that are intended to restrict entry to specific endpoints or resource groups. The core issue lies in the decoupling of path resolution during middleware execution versus route matching within mounted contexts. When an attacker crafts a request with a specifically manipulated URL structure, they can exploit this discrepancy to trigger routes that rely on preceding middleware for security enforcement. For instance, if authentication middleware is applied at a parent level or scoped to specific paths before the mount point, the flawed path forwarding logic may cause the framework to skip these checks entirely when resolving the final handler inside the mounted app. This effectively renders any path-scoped middleware ineffective against crafted requests that exploit this routing inconsistency.

The operational impact of this vulnerability is severe for applications relying on Hono for microservice composition or modular route management where security boundaries are defined by URL prefixes. Attackers can gain unauthorized access to sensitive endpoints, modify data, or execute administrative functions without valid credentials. This bypass undermines the principle of least privilege and compromises the integrity of the application's security model. In environments where multiple services are mounted under a single Hono instance for performance or architectural reasons, this flaw could allow lateral movement within the application logic or exposure of internal APIs that were not intended to be publicly accessible. The risk is amplified in scenarios where complex path manipulation functions are used to normalize URLs before processing, as these custom implementations often introduce subtle bugs if they do not strictly adhere to standard routing expectations.

To mitigate this vulnerability, developers must upgrade immediately to Hono version 4.13.18 or later, which addresses the incorrect path forwarding logic in mount operations. For applications that cannot yet update due to dependency constraints, a temporary workaround involves ensuring that all security middleware is applied at the root level of the main application instance rather than relying on scoped middleware within mounted sub-applications where possible. Additionally, developers should audit any custom getPath implementations to ensure they do not introduce ambiguity in path resolution and consider implementing explicit authorization checks directly within route handlers as a defense-in-depth measure. It is also advisable to review logging mechanisms to detect anomalous request patterns that may indicate exploitation attempts of this routing flaw.

This vulnerability aligns with MITRE ATT&CK technique T1078: Valid Accounts, specifically in the context of bypassing authentication controls through application logic flaws rather than credential theft. By exploiting the path resolution discrepancy, attackers effectively operate as valid users without possessing legitimate credentials. Security teams should prioritize patching this issue to maintain the integrity of access control policies and prevent unauthorized data exposure or system manipulation via crafted HTTP requests targeting mounted route structures.

Responsible

VulnCheck

Reservation

11/26/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!