Reverse Tabnabbing Affecting swagger-ui package, versions <3.18.0


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-JS-SWAGGERUI-449808
  • 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 swagger-ui to version 3.18.0 or higher.

Overview

swagger-ui is a library that allows interaction and visualisation of APIs.

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