CVE-2026-39408
Hono: Path traversal in toSSG() allows writing files outside the output directory
Overview
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.
Source: OX vulnerability database
Severity
7.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-22
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | hono | >=4.0.0, <4.12.12 | 4.12.12 |
Open a package to see all its vulnerabilities.
Operating systems · 16 fixes
chainguard 1 release · 10 packages
| Release | Package | Fixed in |
|---|---|---|
| hono | not affected | |
| gemini-cli | 0.37.0-r0 | |
| librechat | 0.8.4-r5 | |
| opensearch-dashboards-2-fips | 2.19.5-r7 | |
| opensearch-dashboards-2 | 2.19.5-r8 | |
| langfuse-fips-3 | 3.164.0-r3 |
4 more rows
minimos 1 release · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| opensearch-dashboards-2 +1 | 2.19.6-r0 | |
| openclaw | 2026.4.9-r0 | |
| mcp-filesystem | 2026.6.16-r0 | |
| trigger-dev | 4.5.4-r0 | |
| kibana-9-3 | 9.3.4-r0 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| langfuse-3 | 3.164.0-r5 |
References
- github.com https://github.com/honojs/hono
- github.com https://github.com/honojs/hono/commit/b470278920fffcfd6d76002755d6db53db827679
- github.com https://github.com/honojs/hono/releases/tag/v4.12.12
- github.com https://github.com/honojs/hono/security/advisories/GHSA-xf4j-xp2r-rqqx
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-39408
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.