CVE-2026-54286: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in honojs hono
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.25, on Windows hosts, an encoded backslash (%5C) in the request path decodes to \, which the Windows path resolver treats as a separator. serve-static then resolves a single URL segment such as admin\secret.txt into a nested file under the root and serves it, letting an attacker read static files meant to be protected behind prefix-mounted middleware. This vulnerability is fixed in 4.12.25.
AI Analysis
Technical Summary
Honojs hono, a JavaScript web application framework, suffers from a path traversal vulnerability on Windows platforms in versions before 4.12.25. The vulnerability arises because an encoded backslash (%5C) in the URL path is decoded to a backslash (\), which the Windows path resolver interprets as a directory separator. This behavior enables the serve-static middleware to resolve crafted URL segments like 'admin\secret.txt' as nested files under the root directory, bypassing prefix-mounted middleware protections. This can lead to unauthorized disclosure of static files that should be protected. The vulnerability is addressed and fixed in version 4.12.25.
Potential Impact
An attacker can exploit this vulnerability to read static files that are intended to be protected behind middleware restrictions. This unauthorized file access can lead to information disclosure. The CVSS score is 5.9 (medium severity), indicating a moderate impact primarily on confidentiality. There is no indication of integrity or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade to hono version 4.12.25 or later, where this path traversal vulnerability is fixed. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is included in 4.12.25.
CVE-2026-54286: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in honojs hono
Description
Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.25, on Windows hosts, an encoded backslash (%5C) in the request path decodes to \, which the Windows path resolver treats as a separator. serve-static then resolves a single URL segment such as admin\secret.txt into a nested file under the root and serves it, letting an attacker read static files meant to be protected behind prefix-mounted middleware. This vulnerability is fixed in 4.12.25.
CVSS v3.1
Score 5.9medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Honojs hono, a JavaScript web application framework, suffers from a path traversal vulnerability on Windows platforms in versions before 4.12.25. The vulnerability arises because an encoded backslash (%5C) in the URL path is decoded to a backslash (\), which the Windows path resolver interprets as a directory separator. This behavior enables the serve-static middleware to resolve crafted URL segments like 'admin\secret.txt' as nested files under the root directory, bypassing prefix-mounted middleware protections. This can lead to unauthorized disclosure of static files that should be protected. The vulnerability is addressed and fixed in version 4.12.25.
Potential Impact
An attacker can exploit this vulnerability to read static files that are intended to be protected behind middleware restrictions. This unauthorized file access can lead to information disclosure. The CVSS score is 5.9 (medium severity), indicating a moderate impact primarily on confidentiality. There is no indication of integrity or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade to hono version 4.12.25 or later, where this path traversal vulnerability is fixed. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is included in 4.12.25.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-12T17:46:37.292Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a39735ceed863c81e3962a4
Added to database: 06/22/2026, 17:39:40 UTC
Last enriched: 06/29/2026, 21:54:32 UTC
Last updated: 08/04/2026, 20:15:34 UTC
Views: 54
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.
External Links
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.