CVE-2024-22207
Last modified
CVE-2024-22207 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 2.00% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Smartbear | Swagger Ui | >= 2.0.0, < 2.1.0 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-22207?
How severe is CVE-2024-22207?
How do I fix CVE-2024-22207?
Are you affected by CVE-2024-22207?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
