# CVE-2026-39408: Hono has a path traversal in toSSG() allows writing files outside the output directory

- Severity: Medium 5.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-08T00:16:51.000Z
- Modified: 2026-09-10T03:51:03.934Z
- Also known as: GHSA-xf4j-xp2r-rqqx
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- honojs hono: < 4.12.12
- hono (npm): from 4.0.0 before 4.12.12
- hono hono: from 4.0.0 up to 4.12.11

## Every score

- GitHub_M: CVSS:4.0 5.9 Medium `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/honojs/hono/security/advisories/GHSA-xf4j-xp2r-rqqx> (exploit, vendor-advisory, web)
- <https://github.com/honojs/hono/commit/b470278920fffcfd6d76002755d6db53db827679> (patch, web)
- <https://github.com/honojs/hono/releases/tag/v4.12.12> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39408> (advisory)
- <https://github.com/honojs/hono> (package)

## Sources

- CVE List: [CVE-2026-39408](https://www.cve.org/CVERecord?id=CVE-2026-39408), CVE Terms of Use, modified 2026-04-10
- GitHub Advisory Database: [GHSA-xf4j-xp2r-rqqx](https://github.com/advisories/GHSA-xf4j-xp2r-rqqx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-39408](https://nvd.nist.gov/vuln/detail/CVE-2026-39408), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-39408 · Whole record: https://cve.day/CVE-2026-39408.json · Rebuilt by cve.day 2026-11-25T22:59:18.283Z
