GHSA-62jr-84gf-wmg4MediumCVSS 5.3

Default swagger-ui configuration exposes all files in the module

Published
January 16, 2024
Last Modified
February 16, 2024

🔗 CVE IDs covered (1)

📋 Description

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 .

🎯 Affected products1

  • npm/@fastify/swagger-ui:>= 2.0.0, < 2.1.0

🔗 References (5)