Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-39408: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in honojs hono

0
Medium
VulnerabilityCVE-2026-39408cvecve-2026-39408cwe-22
Published: Wed Apr 08 2026 (04/08/2026, 14:42:25 UTC)
Source: CVE Database V5
Vendor/Project: honojs
Product: 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

AILast updated: 04/16/2026, 12:00:50 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses