5.3

CVE-2024-22207: fastify fastify-swagger-ui

CVSS: 5.3v3.1MediumModified
AliasesGHSA-62jr-84gf-wmg4
Published 15-01-2024Last modified 17-06-2025

Vulnerability summary

CVE-2024-22207 is a medium (CVSS 5.3) vulnerability in fastify fastify-swagger-ui. EPSS estimates a 2.29% chance of exploitation in the next 30 days, higher than 82.9% of scored vulnerabilities.

Overall risk
22/100
0100
Low · default modelHow is this calculated?
CVSS score
5.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
2.29%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 15-01-2024
    PublishedVulnerability first disclosed.
  2. 17-06-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

2.29%

Chance of exploitation in the next 30 days

Percentile

83%

Versus all other CVEs

30-day change

0.00 pp

From 2.29% on 19-09-2026

19-09-202619-10-2026
EPSS score
2.29%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

@fastify1 product
  • swagger-ui≥ 2.0.0, < 2.1.0
Fastify1 product
Smartbear1 product

3 vendors · 3 products

References

6 links