新着 / 2026年11月27日 / CVE-2026-135264
@fastify/express にミドルウェア適用漏れによる認可回避の問題
掲載
何が問題か
@fastify/express は Express のミドルウェアや Express アプリを Fastify 上で動かすプラグインです。バージョン 4.0.7 以上 4.0.14 未満では、ネストされた配列で指定されたマウントパスの処理が不完全で、ミドルウェアが一部のリクエストに対して実行されない場合があると説明されています。公表されていません。
悪用されると
攻撃者がこれを利用すると、影響を受けるルートで認証などミドルウェアによるアクセス制御を回避される可能性があります。実際の悪用の有無は公表されていません。
取るべき対応
@fastify/express を 4.0.14 以降に更新してください。更新できない場合は、マウントパスの配列を平坦化するか、ルーティング解決後に動く preHandler などのフックで認証を行う回避策が示されています。
AIが出典から要約し、数値を機械照合しています。
更新履歴
初回掲載。
指標
| 深刻度(CVSS v3.1) | 重要 7.4CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
|---|---|
| 実際の攻撃での悪用 | CISA KEVには未掲載 |
| 問題の種類 | CWE-436、CWE-863 |
| CVE公開日 | 2026-11-26 |
出典
- NVD: CVE-2026-135264
- https://cna.openjsf.org/security-advisories.html
- https://github.com/fastify/fastify-express/security/advisories/GHSA-wjm9-696x-9549
公式の説明(英語の原文)
@fastify/express is the plugin that lets an application run Express middleware and Express applications inside the Fastify web framework. In versions from 4.0.7 before 4.0.14, when middleware is mounted on a nested array of mount paths the plugin rewrites only the top level of the array, so paths inside a nested array are not adjusted for a plugin registered under a prefix and the middleware never runs for them, a nested regular-expression mount keeps its global or sticky flag and is matched statefully so it is skipped on alternating requests, a nested regular expression is not matched case-insensitively when case sensitivity is disabled, and nested dynamic paths are not covered by the earlier empty-segment check. An attacker can use any of these to bypass authentication or other middleware-based access controls on the affected routes. The issue is fixed in @fastify/express 4.0.14, and users should upgrade to 4.0.14 or later. As a workaround, flatten mount path arrays before passing them to the plugin, or enforce authentication in a Fastify hook such as preHandler that runs after the router resolves the request.