p PatchFirst

CVE-2026-39408

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.9 · Medium · EPSS 0.5% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • hono

    Versions
    • < 4.12.12: Affected

    No fix published

  • hono npm

    Affected ranges
    • SEMVER: ≥ 4.0.0, < 4.12.12

    Update to 4.12.12

Original sources

Check your server →