CVE-2024-22207
published medium CVSS 3.1 · 5.3Default swagger-ui configuration exposes all files in the module
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| fastify | — | fastify-swagger-ui< 2.1.0 | Affected | Not stated | GitHub_M |
Description
fastify-swagger-ui is a Fastify plugin for serving Swagger UI. Prior to 2.1.0, the default configuration of `@fastify/swagger-ui` without `baseDir` set will lead to all files in the module's directory being exposed via http routes served by the module. The vulnerability is fixed in v2.1.0. Setting the `baseDir` option can also work around this vulnerability.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| fastify | fastify-swagger-ui | < 2.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1188 CWE-1188: Insecure Default Initialization of Resource
References
3Provider assertions
3GitHub_M · cna
Default swagger-ui configuration exposes all files in the module
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 95fdfe03cd1d93bcd544e63c88dd2bb4e711c85fd9d32623d036f4b5ed4f3b2b
- Ingested
- 23 Sep 2026, 08:19:14 UTC
- Source record
- Official CVE record