本文へ移動
English version →
中 5.3

@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths

CVE-2026-118663 SecPulse初出

影響パッケージ

種類パッケージ影響を受ける版直った版
honojs node-server — —
npm @hono/node-server
1.19.10 以上 2.1.3 未満
2.1.3
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Summary

serveStatic decodes the request path a second time after Hono has already decoded it for routing. A crafted request can be routed as one path and served as another, so middleware mounted on a static prefix does not run for a file under that prefix.

Details

Hono decodes the request path once before routing. serveStatic decoded it again before resolving the file. With a malformed percent-encoded sequence, the first decode leaves part of the path encoded, the router matches the encoded form, and the second decode resolves the real directory. The file is still resolved inside the configured root; this is not a traversal outside it.

Impact

An unauthenticated attacker may reach static files without the middleware on their prefix running, for example an authentication check. This affects applications that mount middleware on part of the directory served by serveStatic. Applications that serve only public files are not affected.

出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のために Cookie を使います。株式会社Game のサイト共通の設定です。 詳しく