Information Exposure Affecting @fastify/swagger-ui package, versions <2.1.0
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
7.03% (95th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-FASTIFYSWAGGERUI-6157561
- published 16 Jan 2024
- disclosed 15 Jan 2024
- credit Nick O'Leary
Introduced: 15 Jan 2024
CVE-2024-22207 Open this link in a new tabHow to fix?
Upgrade @fastify/swagger-ui
to version 2.1.0 or higher.
Overview
@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.
References
CVSS Scores
version 3.1