> CVE-2024-22207 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2024-01-15 16:15
MODIFIED
2024-11-21 08:55
CVSS_SCORE V3
5.3
EPSS (Prob. Exploit)
2.29%
Top 16.5%
🎯 NUCLEI TEMPLATE
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-15 GITHUB 🔗 2026-11-04 OSV 🔗 2026-03-01 NUCLEI 🔗 2026-11-15

> 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.

> AFFECTED_PRODUCTS

Smartbear - Swagger Ui
>= 2.0.0 < 2.1.0

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
None
Aucune interruption de service

> GITHUB SECURITY ADVISORY

GHSA-62jr-84gf-wmg4 MODERATE

Default swagger-ui configuration exposes all files in the module

AFFECTED PACKAGES:
NPM / @fastify/swagger-ui
>= 2.0.0, < 2.1.0
Fixed in: 2.1.0

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Default swagger-ui configuration exposes all files in the module

AFFECTED PACKAGES:
Unknown / Unknown
21 versions affected
Unknown / Unknown
40 versions affected
ALIASES:
GHSA-62jr-84gf-wmg4

> NUCLEI TEMPLATES

Des templates Nuclei sont disponibles pour scanner cette vulnérabilité.

🎯
CVE-2024-22207.yaml
http/cves/2024/CVE-2024-22207.yaml
Usage: nuclei -t http/cves/2024/CVE-2024-22207.yaml -u target.com

> HISTORIQUE DES MODIFICATIONS

Première apparition
15/01/2024 16:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:47
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME