CVE-2024-22207
JavaScript vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68428CRITICAL9.2
  • JavaScriptJavaScript
  • jspdf
NoYesJan 05, 2026
CVE-2025-65110HIGH8.1
  • JavaScriptJavaScript
  • vega-selections
NoYesJan 05, 2026
CVE-2025-67419HIGH7.5
  • JavaScriptJavaScript
  • @evershop/evershop
NoNoJan 05, 2026
CVE-2025-66648HIGH7.2
  • JavaScriptJavaScript
  • vega-functions
NoYesJan 05, 2026
CVE-2025-67427MEDIUM6.5
  • JavaScriptJavaScript
  • @evershop/evershop
NoNoJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management