fastify-swagger-ui is a Fastify plugin for serving Swagger UI. Prior to 2.1.0, the default configuration of…
Historical advisory recorded 24 Oct 2026 23:17:22 UTC. Read the latest advisory.
nvd · CVE-2024-22207
Publishedfastify-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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2024-22207
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-1188
Original publisher date fields
published: 2024-01-15T16:15:13.437
lastModified: 2026-06-17T07:10:56.700
1 source CPE criteria · context only
- cpe:2.3:a:smartbear:swagger_ui:*:*:*:*:*:node.js:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON