@fastify/swagger-ui@1.7.0 vulnerabilities

Serve Swagger-ui for Fastify

Direct Vulnerabilities

Known vulnerabilities in the @fastify/swagger-ui package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Information Exposure

@fastify/swagger-ui is a Serve Swagger-ui for Fastify

Affected versions of this package are vulnerable to Information Exposure due to the default configuration not setting the baseDir, which results in the exposure of all files in the module's directory via HTTP routes served by the module. An attacker can access sensitive information by navigating to these exposed routes.

How to fix Information Exposure?

Upgrade @fastify/swagger-ui to version 2.1.0 or higher.

<2.1.0