原始 OSV JSON{
"id": "GHSA-x9p2-fxq6-2m5f",
"aliases": [],
"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.",
"summary": "Reverse Tabnapping in swagger-ui",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.18.0"
}
]
}
],
"package": {
"name": "swagger-ui",
"ecosystem": "npm"
}
}
],
"modified": "2021-08-16T23:44:47Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"
}
],
"published": "2019-06-20T14:33:07Z",
"references": [
{
"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",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-1022"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2019-06-20T14:13:56Z"
}
}