Cyber Resilience

CVE-2026-39408

Path Traversal in Hono 4.0.0 – 4.12.11

Public PoCPath Traversal
Published
08 April 2026
Modified
24 July 2026
Patch / advisory
CVSS Score v4 5.9
Click a component to see what it means
Raw vectorCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0053 42th percentile
Risk Priority 27 floored blend · peak EPSS

Summary

CVE-2026-39408 is a medium-severity Path Traversal (CWE-22) vulnerability in Hono Hono. Its CVSS base score is 5.9 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 42th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-39408 is a path traversal vulnerability (CWE-22) in the Hono web application framework, which supports any JavaScript runtime. In versions prior to 4.12.12, the toSSG() function mishandles dynamic route parameters provided via ssgParams during static site generation (SSG). This allows specially crafted parameter values to generate file paths that escape the configured output directory, enabling files to be written outside the intended location. The vulnerability has a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N), indicating high confidentiality impact.

The vulnerability can be exploited by remote attackers with network access and no required privileges or user interaction. Exploitation requires the use of dynamic route parameters in ssgParams during SSG processes, where an attacker supplies malicious path traversal payloads (e.g., sequences like "../") to direct file writes beyond the output directory boundaries. Successful exploitation allows attackers to write files to unauthorized locations on the server, potentially leading to unauthorized access to sensitive data as reflected in the high confidentiality impact score.

Mitigation is available in Hono version 4.12.12, which addresses the issue through changes detailed in the project's GitHub commit b470278920fffcfd6d76002755d6db53db827679. Security practitioners should upgrade to this version or later. Additional details are provided in the official release notes at https://github.com/honojs/hono/releases/tag/v4.12.12 and the security advisory at https://github.com/honojs/hono/security/advisories/GHSA-xf4j-xp2r-rqqx.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-39407Same product: Hono Hono
CVE-2024-32869Same product: Hono Hono
CVE-2024-23340Same vendor: Hono
CVE-2026-39406Same vendor: Hono
CVE-2025-21048Shared CWE-22
CVE-2026-23939Shared CWE-22
CVE-2024-7145Shared CWE-22
CVE-2023-42225Shared CWE-22
CVE-2024-33109Shared CWE-22
CVE-2023-35016Shared CWE-22

Affected Assets

hono
hono
4.0.0 — 4.12.11

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V5.3.2

Mitigating Controls (NIST 800-53 r5) AI

Enforces the intended directory access authorizations that path traversal would otherwise bypass.

Input validation directly neutralizes special path elements before pathname construction occurs.

Least privilege reduces the impact of any unauthorized file access obtained via traversal.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-02 partial match
prevents

Patching/maintenance can remediate known path-traversal flaws in deployed software (partial prevention of exploitability) but does nothing to stop the coding defect from being introduced in the first place.

PR.AA-05 none match
prevents

PR.AA-05 defines and reviews access policies but does not address code-level pathname neutralization, so neither direction prevents CWE-22.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development catches path traversal via static/dynamic analysis.

prevents

Secure SDLC mandates input validation and path sanitization that directly prevent path traversal.

prevents

Application security requirements include rules for safe file handling and canonicalization.

prevents

Secure architecture principles require least-privilege file access and directory isolation.

prevents

Secure coding standards explicitly forbid unsafe path construction and mandate safe APIs.

mitigates

Information access restriction limits which files an application may read or write.

References