CVE-2024-22207: Smartbear Swagger UI

Medium severity, CVSS 5.3. EPSS: 2.3% chance of exploitation in the next 30 days.

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.

Affected products

  • Smartbear Swagger UI: from 2.0.0, before 2.1.0 (fixed in 2.1.0)

Published 2024-01-15. Last modified 2026-06-17.