
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-39407 is a middleware bypass vulnerability in the Hono web framework's serveStatic middleware, caused by inconsistent handling of repeated slashes (//) in request paths. When route-based middleware (e.g., /admin/*) is used for authorization, the router may fail to match paths containing repeated slashes, while serveStatic normalizes and resolves them to the same file location — allowing protected static files to be accessed without authorization. It affects all Hono (npm) versions prior to 4.12.12 and was published on April 7–8, 2026. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) (Github Advisory, Hono Security Advisory).
The root cause is a path normalization inconsistency (CWE-22: Path Traversal) between Hono's routing layer and its serveStatic middleware. The router evaluates the raw request path for middleware matching, so a path like //admin/secret.txt may not match a route pattern of /admin/*, while serveStatic normalizes consecutive slashes and resolves the path to admin/secret.txt on the filesystem, returning the file. The fix, applied in commit 9aff14b, updates the path validation regex in src/middleware/serve-static/index.ts to reject any path containing consecutive slashes ([/\]{2,}), ensuring consistent behavior between routing and static file resolution (Hono Security Advisory, Fix Commit).
Successful exploitation allows an unauthenticated remote attacker to read static files that are intended to be protected by route-based authorization middleware. The confidentiality impact is limited to files served under the static root directory — no integrity or availability impact is present. Applications relying on serveStatic combined with route-based access control (e.g., protecting /admin/* paths) are specifically at risk of exposing sensitive configuration files, credentials, or other protected static content (Github Advisory).
No public exploit code or in-the-wild exploitation has been reported for this vulnerability. The EPSS score is approximately 0.021% (6th percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires no privileges or user interaction and is achievable by any network-accessible attacker against a vulnerable Hono application using serveStatic with route-based middleware for access control (Github Advisory).
hono < 4.12.12) that serve static files using serveStatic and protect certain paths with route-based middleware (e.g., /admin/*)./admin/secret.txt, which return a 401/403 when accessed normally.GET //admin/secret.txt or GET /admin//secret.txt instead of GET /admin/secret.txt./admin/* middleware pattern, so the authorization middleware is skipped. serveStatic normalizes the path and returns the file contents.//admin/secret.txt, /admin//config.json) in web server or application access logs./admin//, //protected/).Upgrade the Hono npm package to version 4.12.12 or later, which rejects any request path containing consecutive slashes in serveStatic, ensuring consistent behavior with the routing layer. No configuration-based workaround is documented; upgrading is the only reliable fix. IBM products incorporating Hono (IBM DevOps Solution Workbench, IBM CloudPak for AIOps, IBM App Connect Enterprise Certified Container, IBM watsonx Orchestrate Developer Edition, IBM Bob) have also released security bulletins addressing this issue (Hono Release v4.12.12, IBM DevOps Advisory, IBM CloudPak Advisory).
The vulnerability was reported by researcher blakeembrey and published by Hono maintainer yusukebe on April 7, 2026, as part of a broader security release (v4.12.12) that addressed five separate security issues in the framework. The release received positive community engagement on GitHub, with 12 users reacting to the release notes (Hono Release v4.12.12). IBM subsequently issued multiple security bulletins for affected downstream products incorporating Hono (IBM DevOps Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."