{"id":"GHSA-x9p2-fxq6-2m5f","summary":"Reverse Tabnapping in swagger-ui","details":"Versions of `swagger-ui` prior to 3.18.0 are vulnerable to [Reverse Tabnapping](https://www.owasp.org/index.php/Reverse_Tabnabbing). 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.\n\n\n## Recommendation\n\nUpgrade to version 3.18.0 or later.","modified":"2021-08-16T23:44:47Z","published":"2019-06-20T14:33:07Z","database_specific":{"cwe_ids":["CWE-1022"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2019-06-20T14:13:56Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/swagger-api/swagger-ui/pull/4789"},{"type":"WEB","url":"https://github.com/swagger-api/swagger-ui/commit/3f4cae3334fdd492a373f4453bd03a9ebd87becf"},{"type":"WEB","url":"https://github.com/swagger-api/swagger-ui/releases/tag/v3.18.0"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-SWAGGERUI-449808"},{"type":"WEB","url":"https://www.npmjs.com/advisories/975"}],"affected":[{"package":{"name":"swagger-ui","ecosystem":"npm","purl":"pkg:npm/swagger-ui"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.18.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/06/GHSA-x9p2-fxq6-2m5f/GHSA-x9p2-fxq6-2m5f.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"}]}