
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-22207 affects fastify-swagger-ui, a Fastify plugin for serving Swagger UI. The vulnerability was discovered and disclosed on January 15, 2024, affecting versions 2.0.0 to 2.1.0 of the @fastify/swagger-ui package (NVD, GitHub Advisory).
The vulnerability stems from the default configuration of @fastify/swagger-ui when the baseDir option is not set. This configuration flaw allows all files in the module's directory to be exposed via HTTP routes served by the module. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, indicating network accessibility with low attack complexity and no required privileges or user interaction (GitHub Advisory).
Successful exploitation of this vulnerability could lead to the disclosure of sensitive information. The vulnerability allows unauthorized access to all files within the module's directory through HTTP routes, potentially exposing sensitive configuration files or internal documentation (GitHub Advisory, NetApp Advisory).
The vulnerability has been fixed in version 2.1.0 of @fastify/swagger-ui. For users unable to update immediately, a workaround is available by setting the baseDir option in the configuration. This effectively restricts file access to the specified directory (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."