PT-2024-19275 · Unknown · @Fastify/Swagger-Ui
Knolleary
·
Published
2024-01-15
·
Updated
2024-02-16
·
CVE-2024-22207
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
fastify-swagger-ui versions prior to 2.1.0
Description
The default configuration of
@fastify/swagger-ui without the baseDir option set leads to all files in the module's directory being exposed via HTTP routes served by the module. This issue is fixed in version 2.1.0. Setting the baseDir option can also work around this issue.Recommendations
For versions prior to 2.1.0, update to version 2.1.0 to resolve the issue.
As a temporary workaround, consider setting the
baseDir option to minimize exposure.Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
@Fastify/Swagger-Ui