# CVE-2026-84365: Hono: Incomplete fix for CVE-2026-39408: `toSSG()` still writes files outside the output directory

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A: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.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-09-01T20:26:51.031Z
- Modified: 2026-09-09T21:09:13.080Z
- Also known as: GHSA-gqvv-2mrq-wpjv
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Hono is a Web application framework that provides support for any JavaScript runtime. From 4.12.12 until 4.13.5, the fix released for CVE-2026-39408 does not cover every traversal sequence, and toSSG() can still write files outside the configured output directory when a route parameter contains consecutive parent-directory segments. Static site generation builds each output path from the route path and values supplied through ssgParams, then verifies that the result stays inside the output directory using the same normalization routine that built the path. That routine does not fully collapse runs of consecutive parent-directory segments, allowing a path that the check accepts to resolve outside the output directory, and the check also treats output directories that differ in how they are rooted as equivalent. This arises when an application generates a static site from route parameter values it does not fully control, such as slugs from a CMS, API, or user submission. An untrusted ssgParams value can create or overwrite files elsewhere in the build environment and alter generated artifacts or deployment output. The vulnerability affects build-time static site generation only; request-time routing and applications with entirely developer-controlled ssgParams values are not affected. This issue is fixed in version 4.13.5.

(As written by CVE List.)

## Affected

- honojs hono: < 4.13.5
- hono (npm): before 4.13.5

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/honojs/hono/security/advisories/GHSA-gqvv-2mrq-wpjv> (web)
- <https://github.com/honojs/hono/commit/3a67f7f3997e1437d108f7bcba2dbcee2df69221> (web)
- <https://github.com/honojs/hono/releases/tag/v4.13.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-84365> (advisory)
- <https://github.com/honojs/hono> (package)

## Sources

- CVE List: [CVE-2026-84365](https://www.cve.org/CVERecord?id=CVE-2026-84365), CVE Terms of Use, modified 2026-09-04
- GitHub Advisory Database: [GHSA-gqvv-2mrq-wpjv](https://github.com/advisories/GHSA-gqvv-2mrq-wpjv), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-84365](https://nvd.nist.gov/vuln/detail/CVE-2026-84365), Public domain, modified 2026-09-09

---

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