Reverse Tabnabbing Affecting org.webjars:swagger-ui package, versions [,3.18.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 IDSNYK-JAVA-ORGWEBJARS-449821
  • published13 Jun 2019
  • disclosed4 Aug 2018
  • creditUnknown

Introduced: 4 Aug 2018

CVE NOT AVAILABLE CWE-1022  (opens in a new tab)

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.

CVSS Scores

version 3.1