CVE-2026-39408: 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.12, a path traversal issue in toSSG() allows files to be written outside the configured output directory during static site generation. When using dynamic route parameters via ssgParams, specially crafted values can cause generated file paths to escape the intended output directory. This vulnerability is fixed in 4.12.12.
AI Analysis
Technical Summary
The honojs hono web application framework before version 4.12.12 contains a path traversal vulnerability in its toSSG() static site generation function. When dynamic route parameters are used via ssgParams, an attacker can supply crafted values that cause the generated file paths to escape the configured output directory. This improper limitation of pathname to a restricted directory (CWE-22) can lead to files being written outside the intended directory during static site generation. The vulnerability has a CVSS 4.0 base score of 5.9 (medium severity) and requires local access with high attack complexity and no privileges. The issue is fixed in version 4.12.12.
Potential Impact
Exploitation of this vulnerability allows an attacker to write files outside the intended output directory during static site generation, potentially leading to unauthorized file creation or modification on the host system. The CVSS vector indicates local attack vector with high complexity and no privileges required, but user interaction is not needed. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade to hono version 4.12.12 or later, where this path traversal vulnerability in toSSG() has been fixed. Since the vendor advisory confirms the issue is resolved in 4.12.12, applying this official fix is the recommended remediation. Patch status is not explicitly stated beyond this version update, so verify with the vendor for any additional guidance.
CVE-2026-39408: 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.12, a path traversal issue in toSSG() allows files to be written outside the configured output directory during static site generation. When using dynamic route parameters via ssgParams, specially crafted values can cause generated file paths to escape the intended output directory. This vulnerability is fixed in 4.12.12.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The honojs hono web application framework before version 4.12.12 contains a path traversal vulnerability in its toSSG() static site generation function. When dynamic route parameters are used via ssgParams, an attacker can supply crafted values that cause the generated file paths to escape the configured output directory. This improper limitation of pathname to a restricted directory (CWE-22) can lead to files being written outside the intended directory during static site generation. The vulnerability has a CVSS 4.0 base score of 5.9 (medium severity) and requires local access with high attack complexity and no privileges. The issue is fixed in version 4.12.12.
Potential Impact
Exploitation of this vulnerability allows an attacker to write files outside the intended output directory during static site generation, potentially leading to unauthorized file creation or modification on the host system. The CVSS vector indicates local attack vector with high complexity and no privileges required, but user interaction is not needed. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade to hono version 4.12.12 or later, where this path traversal vulnerability in toSSG() has been fixed. Since the vendor advisory confirms the issue is resolved in 4.12.12, applying this official fix is the recommended remediation. Patch status is not explicitly stated beyond this version update, so verify with the vendor for any additional guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-07T00:23:30.594Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d737061cc7ad14da419553
Added to database: 4/9/2026, 5:20:06 AM
Last enriched: 4/16/2026, 12:00:50 PM
Last updated: 5/24/2026, 2:37:51 AM
Views: 130
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.