Skip to main content
← All vulnerabilities
CVE-2024-22207GHSA-62JR-84GF-WMG4

Default swagger-ui configuration exposes all files in the module

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.1.0
1 Nuclei template
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • fastify fastify-swagger-ui

    fixed in 2.1.0

  • @fastify/swagger-uinpm

    From 2.0.0 · fixed in 2.1.0

References 4

GitHub · fastify/fastify-swagger-ui

security.netapp.com

GitHub · projectdiscovery/nuclei-templates