CVE-2024-22207

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductSmartbear Swagger Ui
PublishedJan 15, 2024
First seenJan 15, 2024
Weakness typeCWE-1188CWE-1188

How to fix

Update
  • smartbear swagger_ui2.1.0 or later
  • @fastify/swagger-ui2.1.0 or later

Affected products

ProductAffected versionsFixed in
smartbear swagger_ui2.0.0 ≤ v < 2.1.02.1.0
@fastify/swagger-uinpm2.0.0 ≤ v < 2.1.02.1.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2024-22207 · Smartbear Swagger Ui · Dark Radar