CVE-2024-22207

CVE-2024-22207 is a medium-severity vulnerability in Smartbear Swagger Ui with a CVSS 3.x base score of 5.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-1188.

Key facts

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.

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 3.x base score of 5.3, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity none, and availability none.
Is CVE-2024-22207 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (78th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-22207?
CVE-2024-22207 affects Smartbear Swagger Ui. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-22207?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2024-22207 have an EU (EUVD) identifier?
Yes. CVE-2024-22207 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0266.
When was CVE-2024-22207 published?
CVE-2024-22207 was published on 2024-01-15 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Smartbear Swagger Ui

All CVEs affecting Smartbear Swagger Ui →

Other CWE-1188 (Insecure Default Initialization of Resource) vulnerabilities

Browse all CWE-1188 (Insecure Default Initialization of Resource) vulnerabilities →