CVE-2026-39407: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in honojs hono
CVE-2026-39407 is a path traversal vulnerability in the honojs hono web framework versions prior to 4. 12. 12. The issue arises from inconsistent path handling in the serveStatic function, which normalizes repeated slashes in request paths, allowing access to protected static files. When route-based middleware is used for authorization, paths with repeated slashes may bypass middleware checks because the router does not normalize these paths the same way. This vulnerability has a CVSS score of 5. 3 (medium severity) and is fixed in version 4. 12. 12.
AI Analysis
Technical Summary
Honojs hono versions before 4.12.12 contain a path traversal vulnerability (CWE-22) due to inconsistent handling of repeated slashes in URL paths. The serveStatic middleware normalizes paths by collapsing repeated slashes, allowing access to files that should be protected. However, route-based middleware used for authorization does not normalize these paths, causing a mismatch that can be exploited to bypass authorization controls. This vulnerability enables unauthorized read access to protected static files. The issue is resolved in hono version 4.12.12.
Potential Impact
An attacker can bypass route-based authorization middleware by exploiting inconsistent path normalization, potentially gaining unauthorized read access to protected static files. The vulnerability does not affect integrity or availability, only confidentiality of static file content. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade honojs hono to version 4.12.12 or later, where this path traversal vulnerability is fixed. No other mitigation is indicated by the vendor advisory. Patch status is not explicitly stated but the fix is included in the specified version update.
CVE-2026-39407: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in honojs hono
Description
CVE-2026-39407 is a path traversal vulnerability in the honojs hono web framework versions prior to 4. 12. 12. The issue arises from inconsistent path handling in the serveStatic function, which normalizes repeated slashes in request paths, allowing access to protected static files. When route-based middleware is used for authorization, paths with repeated slashes may bypass middleware checks because the router does not normalize these paths the same way. This vulnerability has a CVSS score of 5. 3 (medium severity) and is fixed in version 4. 12. 12.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Honojs hono versions before 4.12.12 contain a path traversal vulnerability (CWE-22) due to inconsistent handling of repeated slashes in URL paths. The serveStatic middleware normalizes paths by collapsing repeated slashes, allowing access to files that should be protected. However, route-based middleware used for authorization does not normalize these paths, causing a mismatch that can be exploited to bypass authorization controls. This vulnerability enables unauthorized read access to protected static files. The issue is resolved in hono version 4.12.12.
Potential Impact
An attacker can bypass route-based authorization middleware by exploiting inconsistent path normalization, potentially gaining unauthorized read access to protected static files. The vulnerability does not affect integrity or availability, only confidentiality of static file content. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade honojs hono to version 4.12.12 or later, where this path traversal vulnerability is fixed. No other mitigation is indicated by the vendor advisory. Patch status is not explicitly stated but the fix is included in the specified version update.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-07T00:23:30.594Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d737041cc7ad14da419531
Added to database: 4/9/2026, 5:20:04 AM
Last enriched: 4/9/2026, 5:27:23 AM
Last updated: 4/9/2026, 9:22:31 AM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.