CVE-2024-22207

MEDIUM
Published Jan 15, 2024 Modified Nov 21, 2024 CWE-1188

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.

Is your site exposed to CVE-2024-22207?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

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

Weakness Type (CWE)

CWE-1188 CWE-1188

Affected Products

Vendor Product
smartbear swagger_ui

References

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. It has a CVSS v3.1 base score of 5.3 (MEDIUM).
How severe is CVE-2024-22207? +
CVE-2024-22207 has a CVSS v3.1 score of 5.3 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2024-22207? +
CVE-2024-22207 affects products from smartbear, specifically: swagger_ui. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-22207? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-22207 — free, no signup required.