Lucene search
+L

Fastify Swagger-UI - Information Disclosure

🗓️ 20 Oct 2026 02:05:18Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 190 Views

Fastify Swagger-UI - Information Disclosure. Exposes all files in module's directory via http routes. Vulnerability fixed in v2.1.0. Setting `baseDir` option can work around this vulnerability

Related
Refs
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2024-22207
15 Jan 202417:27
–circl
cnnvd
CNNVD
Swagger UI Security Vulnerability
15 Jan 202400:00
–cnnvd
cve
CVE
CVE-2024-22207
15 Jan 202415:40
–cve
cvelist
Cvelist
CVE-2024-22207 Default swagger-ui configuration exposes all files in the module
15 Jan 202415:40
–cvelist
github
Github Security Blog
Default swagger-ui configuration exposes all files in the module
16 Jan 202415:24
–github
kittysploit
KittySploit
Fastify Swagger-UI - Information Disclosure Detection
28 Jul 202611:27
–kittysploit
mend
Mend
CVE-2024-22207
15 Jan 202415:40
–mend
nvd
NVD
CVE-2024-22207
15 Jan 202416:15
–nvd
osv_ghsa
osv_ghsa
GHSA-62JR-84GF-WMG4 Default swagger-ui configuration exposes all files in the module
16 Jan 202415:24
–osv_ghsa
prion
Prion
Default configuration
15 Jan 202416:15
–prion
Rows per page
id: CVE-2024-22207

info:
  name: Fastify Swagger-UI - Information Disclosure
  author: DhiyaneshDK,iamnoooob
  severity: 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.
  impact: |
    Unauthenticated attackers can access sensitive files in the Fastify Swagger-UI module directory, potentially exposing source code or configuration files.
  remediation: |
    Update @fastify/swagger-ui to version 2.1.0 or later, or configure the baseDir option.
  reference:
    - https://security.netapp.com/advisory/ntap-20240216-0002/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-22207
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2024-22207
    cwe-id: CWE-1188
    epss-score: 0.0229
    epss-percentile: 0.82969
    cpe: cpe:2.3:a:smartbear:swagger_ui:*:*:*:*:*:node.js:*:*
  metadata:
    vendor: smartbear
    product: swagger_ui
    framework: node.js
    shodan-query:
      - http.component:"swagger"
      - http.favicon.hash:"-1180440057"
    fofa-query: icon_hash="-1180440057"
  tags: cve,cve2024,swagger-ui,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/documentation/playwright.config.js"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "module.exports"
          - "defineConfig"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a0047304502205c342075cc7be096aa6ea7181430d1fde48d2543288ef1166091c219b2f63cc7022100a114e9dda6897f97b635120b0e8761d12b750608133f23008e4c64dcb4f5305a:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
6Medium risk
Vulners AI Score6
CVSS 3.15.3
EPSS0.0229
SSVC
190