CVE-2026-39408 Hono has a path traversal in toSSG() allows writing files outside the output directory
MediumCVSS 5.9
EPSS 0.51%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| hono | >= 4.0.0, <= 4.12.11 | after 4.12.11 | Fixed |
| npm hono(npm) | >= 4.0.0, < 4.12.12; >= 4.0.0, <= 4.12.11 | 4.12.12 | Fixed |
| honojs hono | = < 4.12.12 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| honojs hono | = < 4.12.12 | No fix listed |
| npm hono(npm) | >= 4.0.0, <= 4.12.11 | No fix listed |
| hono | >= 4.0.0, <= 4.12.11 | No fix listed |
| npm hono(npm) | >= 4.0.0, < 4.12.12 | 4.12.12 |
References
- https://github.com/honojs/hono/security/advisories/GHSA-xf4j-xp2r-rqqx exploit vendor-advisory
- https://github.com/honojs/hono/commit/b470278920fffcfd6d76002755d6db53db827679 patch
- https://github.com/honojs/hono/releases/tag/v4.12.12 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product