Headline
GHSA-62jr-84gf-wmg4: Default swagger-ui configuration exposes all files in the module
Impact
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.
Patches
Update to v2.1.0
Workarounds
Use the baseDir
option
References
Default swagger-ui configuration exposes all files in the module
Moderate severity GitHub Reviewed Published Jan 15, 2024 in fastify/fastify-swagger-ui • Updated Jan 16, 2024