@fastify/swagger-ui
Affected
- introduced
2.0.0, fixed2.1.0(semver)
Fixed versions
2.1.0
Fix
- Fixed version
2.1.0npm install @fastify/[email protected]
Advisory
Also known as: CVE-2024-22207
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
[HackerOne report
](https://hackerone.com/reports/2312369).
Medium Basis: The source's own band: MODERATE
2.0.0, fixed 2.1.0 (semver)2.1.0
2.1.0npm install @fastify/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0