CVE-2024-22207
MEDIUM 5.3CVSS 3.1Default swagger-ui configuration exposes all files in the module
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.
- Published
- 15 Jan 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1188
- Also known as
- GHSA-62jr-84gf-wmg4
- Sources
- NVDJSONOSV GHSA-62jr-84gf-wmg4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smartbear | swagger_uicpe:2.3:a:smartbear:swagger_ui:*:*:*:*:*:node.js:*:* |
>= 2.0.0, < 2.1.0 | 2.1.0 |
| OSV | npm | @fastify/swagger-ui | >= 2.0.0, < 2.1.0 | 2.1.0 |
References
- https://github.com/fastify/fastify-swagger-ui/commit/13d799a2c5f14d3dd5b15892e03bbcbae63ee6f7 · Patch, WEB
- https://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-62jr-84gf-wmg4 · Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20240216-0002/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-22207 · ADVISORY
- https://github.com/fastify/fastify-swagger-ui · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 15 Jan 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 16 Jan 2024)