CVE-2026-84365: 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. From 4.12.12 until 4.13.5, the fix released for CVE-2026-39408 does not cover every traversal sequence, and toSSG() can still write files outside the configured output directory when a route parameter contains consecutive parent-directory segments. Static site generation builds each output path from the route path and values supplied through ssgParams, then verifies that the result stays inside the output directory using the same normalization routine that built the path. That routine does not fully collapse runs of consecutive parent-directory segments, allowing a path that the check accepts to resolve outside the output directory, and the check also treats output directories that differ in how they are rooted as equivalent. This arises when an application generates a static site from route parameter values it does not fully control, such as slugs from a CMS, API, or user submission. An untrusted ssgParams value can create or overwrite files elsewhere in the build environment and alter generated artifacts or deployment output. The vulnerability affects build-time static site generation only; request-time routing and applications with entirely developer-controlled ssgParams values are not affected. This issue is fixed in version 4.13.5.
CVSS v3.1
Score 6.5medium
Affected software
honojs
hono
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the path normalization routine used in static site generation does not fully collapse consecutive parent-directory segments, allowing paths that pass the check to resolve outside the configured output directory. This enables an attacker controlling ssgParams values (such as slugs from a CMS or user input) to create or overwrite files elsewhere in the build environment, potentially altering generated artifacts or deployment outputs. The flaw only impacts build-time static site generation and is addressed in hono version 4.13.5.
Potential Impact
An attacker able to supply untrusted route parameter values during static site generation can cause files to be created or overwritten outside the intended output directory. This could lead to unauthorized modification of build artifacts or deployment outputs, impacting the integrity of the generated static site. There is no impact on request-time routing or applications that fully control ssgParams values. The vulnerability has a CVSS 3.1 score of 6.5 (medium severity) with no known exploits in the wild.
Mitigation Recommendations
This vulnerability is fixed in hono version 4.13.5. Users should upgrade to version 4.13.5 or later to resolve the issue. Until upgrading, avoid using untrusted or user-controlled values in ssgParams during static site generation. There is no vendor advisory provided, so patch status is based on the description stating the fix is in 4.13.5.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-01T16:27:58.128Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a9737bfacd9273b492c51a9
Added to database: 09/01/2026, 20:38:23 UTC
Last enriched: 09/07/2026, 12:35:32 UTC
Last updated: 10/17/2026, 18:48:23 UTC
Views: 108
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.