cve/2024/CVE-2024-22207.md
2025-09-29 21:09:30 +02:00

19 lines
968 B
Markdown

### [CVE-2024-22207](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-22207)
![](https://img.shields.io/static/v1?label=Product&message=fastify-swagger-ui&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C%202.1.0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-1188%3A%20Insecure%20Default%20Initialization%20of%20Resource&color=brightgreen)
### 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.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/20142995/nuclei-templates
- https://github.com/cyb3r-w0lf/nuclei-template-collection