Path Traversal in @fastify/static
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
@fastify/staticの10.1.0以前では、パスのドットドット区切りが拒否されず、認証なしの攻撃者がルート単位のミドルウェアを迂回して、静的ルート内のファイルを読み取れるおそれがあります。静的ルートの外には直接は及びません。修正版の10.1.1が公開されているため、速やかに更新してください。
@fastify/staticにおけるパストラバーサル脆弱性
バージョン10.1.0までの@fastify/static
認証されていない攻撃者が静的ルート内のファイルを読み取ることが可能
@fastify/staticをバージョン10.1.1以降にアップデートする
情報なし
バージョン10.1.0以下を使用しているか確認する
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npm@fastify/static |
< 10.1.1→ 10.1.1 |
10.1.1 |
Original description The description as published by the source.
@fastify/static up to and including version 10.1.0 fails to reject dot-dot path segments in request pathnames before the file-resolution stage. This is a bypass of the earlier fix for CVE-2026-6414, which only covered encoded forward slashes. Because the underlying send library normalizes dot segments before applying its own path-traversal guard, an unauthenticated attacker can bypass any route-scoped middleware and read files inside the static root that live under the guarded URL prefix. The bypass does not allow access outside the configured static root by itself, it defeats route-guard filtering only. The issue is patched in @fastify/static 10.1.1.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory cna.openjsf.org
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com