@fastify/swagger-ui vulnerable to documentation authentication bypass via the unprotected /static route
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| @fastify/swagger-ui@fastify/swagger-ui |
2.1.0 以上 6.1.5 未満→ 6.1.5 |
6.1.5 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
@fastify/swagger-ui is the plugin that serves Swagger UI documentation for Fastify applications. In versions 2.1.0 through 6.1.4, the authentication hooks that applications register to protect the documentation are applied to every route the plugin adds except the bundled static asset instance. When the option that serves bundled UI files from a local directory is enabled, that instance exposes every file in the directory without credentials, so a specification file an operator meant to keep behind the documentation login becomes reachable by an unauthenticated client who knows or guesses its name. Access is read-only and limited to files in that directory. The issue is fixed in @fastify/swagger-ui 6.1.5, which applies the same authentication hooks to the static asset route, and users should upgrade to 6.1.5 or later.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory cna.openjsf.org
- advisory github.com
- advisory nvd.nist.gov