Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability presents moderate real-world risk despite the moderate CVSS score of 5.3. The attack vector is network-based with low complexity and requires no authentication or user interaction, making exploitation trivial for any remote attacker. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L) confirms unauthenticated remote exploitation with limited confidentiality impact. The practical impact, however, is significant: it defeats application-layer access controls entirely, allowing attackers to bypass authorization middleware that developers may reasonably assume is enforcing security boundaries. The vulnerability is not a low-probability edge case but a fundamental design flaw affecting any Hono application combining serveStatic with route-based authorization. The existence of a vendor-released patch (v4.12.12) and the specific nature of the bypass (repeated slashes are a known fuzzing vector) suggest this issue has been independently discovered and prioritized. Organizations relying on Hono for access control should treat this as a priority remediation despite the moderate CVSS rating, as the authentication bypass nature elevates real-world severity beyond the score. |
| Exploit ScenarioDerived | An attacker targeting a Hono application protected by |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 08, 2026
Middleware bypass in Hono's serveStatic allows unauthenticated remote attackers to access protected static files by using repeated slashes in request paths, exploiting inconsistent path handling between the routing layer and static file resolution. The vulnerability affects Hono applications that rely on route-based middleware for access control, enabling unauthorized disclosure of sensitive files. Vendor-released patch available in version 4.12.12.
RemediationAI
Upgrade Hono to version 4.12.12 or later, which includes a fix that rejects paths containing repeated slashes, ensuring consistent path normalization between the routing layer and serveStatic middleware. This fix prevents the middleware bypass by guaranteeing that paths with // patterns are either rejected outright or normalized before routing decisions are made. Apply the patch immediately to all applications using Hono with route-based access control on static files. See vendor advisory at https://github.com/honojs/hono/security/advisories/GHSA-wmmm-f939-6g9c for detailed upgrade guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Hono is a lightweight JavaScript web framework. The vulnerability stems from a path normalization inconsistency (CWE-22: Improper Limitation of a Pathname to a Restricted Directory) where the routing engine and the serveStatic middleware interpret repeated forward slashes differently. The router may not match paths containing // patterns against wildcard routes like /admin/*, while the serveStatic handler resolves both normalized and non-normalized paths to the same file location. For example, a request to GET //admin/secret.txt bypasses the /admin/* middleware rule because the router does not match the path with leading double slashes, but serveStatic normalizes the path and serves the file. This occurs because path normalization happens at different stages of request processing, creating an authentication bypass window where protected resources become accessible.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
Summary
A path handling inconsistency in serveStatic allows protected static files to be accessed by using repeated slashes (//) in the request path.
When route-based middleware (e.g., /admin/*) is used for authorization, the router may not match paths containing repeated slashes, while serveStatic resolves them as normalized paths. This can lead to a middleware bypass.
Details
The routing layer and serveStatic handle repeated slashes differently.
For example:
/admin/secret.txt => matches /admin/*
/admin//secret.txt => may not match /admin/*However, serveStatic may interpret both paths as the same file location (e.g., admin/secret.txt) and return the file.
This inconsistency allows a request such as:
GET //admin/secret.txtto bypass middleware registered on /admin/* and access protected files.
The issue has been fixed by rejecting paths that contain repeated slashes, ensuring consistent behavior between route matching and static file resolution.
Impact
An attacker can access static files that are intended to be protected by route-based middleware by using repeated slashes in the request path.
This can lead to unauthorized access to sensitive files under the static root.
This issue affects applications that rely on serveStatic together with route-based middleware for access control.
Blast Radius
ecosystem impact- 67 npm packages depend on hono (50 direct, 17 indirect)
Ecosystem-wide dependent count for version 4.12.12.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-20493
GHSA-wmmm-f939-6g9c
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB