CVE-2024-22207

MEDIUMCVSS 5.3/10EPSS 2.00%

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
5.3/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

EPSS Probability
2.00%

78.2th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
SmartbearSwagger Ui>= 2.0.0, < 2.1.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2024-22207?
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.
How severe is CVE-2024-22207?
CVE-2024-22207 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 2.00% probability of exploitation in the next 30 days.
How do I fix CVE-2024-22207?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-22207?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST