Default swagger-ui configuration exposes all files in the module
Moderate severity
GitHub Reviewed
Published
Jan 15, 2024
in
fastify/fastify-swagger-ui
•
Updated Feb 16, 2024
Description
Published by the National Vulnerability Database
Jan 15, 2024
Published to the GitHub Advisory Database
Jan 16, 2024
Reviewed
Jan 16, 2024
Last updated
Feb 16, 2024
Impact
The default configuration of
@fastify/swagger-ui
withoutbaseDir
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
optionReferences
HackerOne report
.
References