Reverse Tabnabbing Affecting org.webjars:swagger-ui package, versions [,3.18.1)
Snyk CVSS
Attack Complexity
Low
User Interaction
Required
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-JAVA-ORGWEBJARS-449821
- published 13 Jun 2019
- disclosed 4 Aug 2018
- credit Unknown
How to fix?
Upgrade org.webjars:swagger-ui
to version 3.18.1 or higher.
Overview
org.webjars:swagger-ui is a WebJar for Swagger UI npm library.
Affected versions of this package are vulnerable to Reverse Tabnabbing. Setting target="_blank"
on anchor tags is unsafe unless used in conjunction with the rel="noopener"
attribute. A link opened via target blank attribute can make changes to the original page, essentially bypassing same origin policy restrictions set by the browser.