Vulnerabilities/

Default swagger-ui configuration exposes all files in the module

Severity:
Medium

Description

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.

Recommendation

Update the @fastify/swagger-ui package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@fastify/swagger-ui
Anything's wrong? Let us know Last updated on February 16, 2024

This issue is available in SmartScanner Professional

See Pricing