Server-side Request Forgery (SSRF) Affecting swagger-ui package, versions <4.1.3
Snyk CVSS
Attack Complexity
Low
User Interaction
Required
Threat Intelligence
Exploit Maturity
Mature
EPSS
0.13% (46th
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-SWAGGERUI-2314885
- published 10 Dec 2021
- disclosed 9 Dec 2021
- credit Unknown
How to fix?
Upgrade swagger-ui to version 4.1.3 or higher.
Overview
swagger-ui is a library that allows interaction and visualisation of APIs.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the ?url parameter, which was intended to allow displaying remote OpenAPI definitions. This functionality may pose a risk for users who host their own SwaggerUI instances. In particular, including remote OpenAPI definitions opens a vector for phishing attacks by abusing the trusted names/domains of self-hosted instances.