CVE-2024-22207

Default swagger-ui configuration exposes all files in the module

Published Jan 15, 2024 CVSS 3.1 · 5.3 Medium EPSS 2.3% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-62jr-84gf-wmg4 Default swagger-ui configuration exposes all files in the module
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 17, 2025, 2:34 PM
Reserved
Jan 8, 2024, 4:59 AM
Status
Modified
Published
Jan 15, 2024, 4:15 PM
Modified
Jun 17, 2026, 7:10 AM