Live threats

All CVEs / Smartbear

CVE-2024-22207Smartbear Swagger Ui

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
3.2%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
Jan 15, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1188
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Swagger Ui.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @fastify/swagger-ui ≥ 2.0.0 < 2.1.0 2.1.0 npm install @fastify/swagger-ui@2.1.0

Per OSV / GitHub Advisories (GHSA-62jr-84gf-wmg4). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
smartbearswagger_ui≥ 2.0.0 < 2.1.0

Official sources

References

Links published by the sources. Open them with care.