Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-39408 EUVD-2026-20495GHSA-xf4j-xp2r-rqqx

Hono has a path traversal in toSSG() allows writing files outside the output directory

Published Apr 8, 2026 · Updated Apr 10, 2026 · 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.

Affected products

VendorProductAffectedFixed
honojs hono < 4.12.12 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-worker 3.164.0-r5 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm hono >= 4.0.0, < 4.12.12 4.12.12 GHSA-xf4j-xp2r-rqqx

Advisories 1

References