漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Hono: Incomplete fix for CVE-2026-39408: `toSSG()` still writes files outside the output directory
Vulnerability 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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Vulnerability Title
Hono 路径遍历漏洞
Vulnerability Description
Hono是Hono组织开源的一系列超小型Web应用框架。 Hono 4.12.12至4.13.5之前版本存在路径遍历漏洞,该漏洞源于toSSG()函数路径规范化不完整,未能完全折叠连续的父目录段,可能导致路径遍历,攻击者可利用不可信的ssgParams值在构建环境中创建或覆盖文件,从而篡改生成的产物或部署输出。
CVSS Information
N/A
Vulnerability Type
N/A