製品・ソフトウェアに関する情報
fastifyのfastify-staticにおけるURL エンコーディング(16進エンコーディング)の処理に関する脆弱性
Title fastifyのfastify-staticにおけるURL エンコーディング(16進エンコーディング)の処理に関する脆弱性
Summary

@fastify/staticのバージョン8.0.0から9.1.0まででは、ファイルシステムの解決の前にパーセントエンコードされたパスセパレータ(%2F)をデコードしますが、Fastifyのルーターはそれらを文字通りの文字として扱います。この不一致により、攻撃者は@fastify/staticによって提供されるファイルを保護するルートベースのミドルウェアやガードを回避できます。例えば、保護されたパス上のルートガードはURL内のパスセパレータをエンコードすることで回避される可能性があります。この問題を修正するために、@fastify/staticを9.1.1にアップグレードしてください。回避策は存在しません。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 16, 2026, midnight
Registration Date April 27, 2026, 11:19 a.m.
Last Update April 27, 2026, 11:19 a.m.
CVSS3.0 : 警告
Score 5.9
Vector CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected System
fastify
fastify-static 8.0.0 以上 9.1.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年04月27日]
  掲載
April 27, 2026, 11:19 a.m.

NVD Vulnerability Information
CVE-2026-6414
Summary

@fastify/static versions 8.0.0 through 9.1.0 decode percent-encoded path separators (%2F) before filesystem resolution, while Fastify's router treats them as literal characters. This mismatch allows attackers to bypass route-based middleware or guards that protect files served by @fastify/static. For example, a route guard on a protected path can be circumvented by encoding the path separator in the URL. Upgrade to @fastify/static 9.1.1 to fix this issue. There are no workarounds.

Publication Date April 16, 2026, 10:16 p.m.
Registration Date April 17, 2026, 4:12 a.m.
Last Update April 24, 2026, 4:41 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:fastify:fastify-static:*:*:*:*:*:*:*:* 8.0.0 9.1.1
Related information, measures and tools
Common Vulnerabilities List