脆弱性の一覧へ戻る
編集部の見出し:@fastify/express:空の動的セグメントでパス単位の認証ミドルウェアが飛ばされる(9.1)
NVD の情報
@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.5 through 4.0.9, the plugin matches path-scoped Express middleware with a matcher that requires a non-empty value for a dynamic segment, while Fastify's router accepts an empty parameter or wildcard value. When a route and an Express middleware mount share a dynamic pattern, a request with an empty segment matches the Fastify route and runs the handler while the middleware mounted on that pattern is skipped, so on a scoped mount an unauthenticated request can reach a protected handler. No special configuration is required, and the practical impact depends on what the empty value selects in the application. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.
- 公開日
- 2026-11-21
- 最終更新(NVD)
- 2026-11-23
- NVD の状態
- Awaiting Analysis
- 脆弱性の種類
- CWE-287、CWE-436
深刻度(CVSS)
- 9.1 CriticalCVSS 3.1/副/評価:ce714d77-add3-4f53-aff5-83d477b104bb
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
悪用の状況
CISA KEV には掲載されていません(掲載されていないことは、悪用されていないことの証明ではありません)。
EPSS:今後30日に悪用される推定確率 0.79%(全体の上位 42.7%、評価日 2026-11-23)
解消方法
- @fastify/express のバージョンアップ4.0.10 以降根拠:公告(編集部の転記)
- 回避策(設定変更など)根拠:公告(編集部の転記)
「NVD の条件から推定」は、NVD が影響ありとする版の上限から読み取ったもので、修正版とは限りません。「解消方法の情報なし」は、修正が無いという意味ではありません。必ずベンダーの公告で確認してください。
編集部の記載(レポート掲載時)
レポートの編集部がベンダー公告などから転記した内容です。検証済みの値ではないため、必ず出典で確認してください。
2026-11-22 のレポート@fastify/express:空の動的セグメントでパス単位の認証ミドルウェアが飛ばされる(9.1)
Fastify のルーターは空のパラメータを受け付けるが、Express のミドルウェアの照合は不一致とみなすため、/tenant/ のような要求がハンドラーに届き認証が飛ばされる。特別な設定は不要。
悪用状況(編集部):悪用の報告は確認されていない
公告に記載の修正版
- @fastify/express 4.0.10公告
公告に記載の回避策
- ルート解決後に動く preHandler などのフックで認証する。または動的セグメントを含まない親パス(例 /tenant)にミドルウェアを掛ける公告
参照(NVD)
NVD から取得:2026-11-23T17:45:27.476Z/EPSS 評価日:2026-11-23
This product uses the NVD API but is not endorsed or certified by the NVD.
悪用の確認情報は CISA Known Exploited Vulnerabilities Catalog(NVD 経由で取得)によります。EPSS は FIRST(www.first.org/epss)によります。