原始 OSV JSON{
"id": "GHSA-2q4g-w47c-4674",
"aliases": [
"CVE-2020-15174"
],
"details": "### Impact\nThe `will-navigate` event that apps use to prevent navigations to unexpected destinations [as per our security recommendations](https://www.electronjs.org/docs/tutorial/security) can be bypassed when a sub-frame performs a top-frame navigation across sites.\n\n### Patches\n\n* `11.0.0-beta.1`\n* `10.0.1`\n* `9.3.0`\n* `8.5.1`\n\n### Workarounds\nSandbox all your iframes using the [`sandbox` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox). This will prevent them creating top-frame navigations and is good practice anyway.\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Email us at [email protected] ",
"summary": "Unpreventable top-level navigation",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "8.0.0-beta.0"
},
{
"fixed": "8.5.1"
}
]
}
],
"package": {
"name": "electron",
"ecosystem": "npm"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "9.0.0-beta.0"
},
{
"fixed": "9.3.0"
}
]
}
],
"package": {
"name": "electron",
"ecosystem": "npm"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "10.0.0-beta.0"
},
{
"fixed": "10.0.1"
}
]
}
],
"package": {
"name": "electron",
"ecosystem": "npm"
}
}
],
"modified": "2021-11-19T14:44:04Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L"
}
],
"published": "2020-10-06T14:24:04Z",
"references": [
{
"url": "https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15174",
"type": "ADVISORY"
},
{
"url": "https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b",
"type": "WEB"
},
{
"url": "https://github.com/electron/electron",
"type": "PACKAGE"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-20",
"CWE-693"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2020-10-06T18:15:00Z",
"github_reviewed_at": "2020-10-06T14:12:16Z"
}
}