Description
Versions of swagger-ui prior to 3.18.0 are vulnerable to Reverse Tabnapping. The package uses target='_blank' in anchor tags, allowing attackers to access window.opener for the original page. This is commonly used for phishing attacks.
Recommendation
Update the swagger-ui package to the latest compatible version. Followings are version details:
- Affected version(s): < 3.18.0
- Patched version(s): 3.18.0
References
Related Issues
- Cross-Site Scripting in swagger-ui (GHSA-4f9m-pxwh-68hg) - Vulnerability
- Spoofing attack in swagger-ui - CVE-2018-25031
- Cross-site scripting in Swagger-UI - CVE-2019-17495
- Prototype Pollution in vConsole - CVE-2023-30363
- Tags:
- npm
- swagger-ui
Anything's wrong? Let us know Last updated on January 09, 2023