Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
honojs hono
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Hono是Hono社区的一个用 TypeScript 编写的 Web 框架。 Hono 4.12.12之前版本存在路径遍历漏洞,该漏洞源于toSSG函数存在路径遍历问题,可能导致在静态站点生成期间将文件写入配置的输出目录之外。

AI Predicted 7.5 Difficulty: Easy EPSS 0.45% · P37

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-39408

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Hono has a path traversal in toSSG() allows writing files outside the output directory
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
Hono 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Hono是Hono社区的一个用 TypeScript 编写的 Web 框架。 Hono 4.12.12之前版本存在路径遍历漏洞,该漏洞源于toSSG函数存在路径遍历问题,可能导致在静态站点生成期间将文件写入配置的输出目录之外。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
honojs hono < 4.12.12 -

II. Public POCs for CVE-2026-39408

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-39408

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-39408 (1)

Vendor Pages for CVE-2026-39408 (1)

Same Patch Batch · honojs · 2026-04-08 · 5 CVEs total

CVE-2026-39407 5.3 MEDIUM Hono has a middleware bypass via repeated slashes in serveStatic
CVE-2026-39406 5.3 MEDIUM @hono/node-server has a middleware bypass via repeated slashes in serveStatic
CVE-2026-39410 4.8 MEDIUM Hono has a non-breaking space prefix bypass in cookie name handling in getCookie()
CVE-2026-39409 Hono has incorrect IP matching in ipRestriction() for IPv4-mapped IPv6 addresses

IV. Related Vulnerabilities

V. Comments for CVE-2026-39408

No comments yet


Leave a comment