{"id":"CVE-2020-15174","published":"2020-10-06T17:35:13Z","modified":"2024-08-04T13:08:22Z","title":"Unpreventable top-level navigation in Electron","vendor":"electron","product":"electron","tier":"tail","description":{"text":"In Electron before versions 11.0.0-beta.1, 10.0.1, 9.3.0 or 8.5.1 the `will-navigate` event that apps use to prevent navigations to unexpected destinations as per our security recommendations can be bypassed when a sub-frame performs a top-frame navigation across sites. The issue is patched in versions 11.0.0-beta.1, 10.0.1, 9.3.0 or 8.5.1 As a workaround sandbox all your iframes using the sandbox attribute. This will prevent them creating top-frame navigations and is good practice anyway.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01346,"percentile":0.72118,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"},{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b","tags":["x_refsource_MISC"]}],"priority":{"score":19.7,"factors":[{"name":"EPSS percentile","points":14.42},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":[">= 8.0.0-beta.0, < 8.5.1",">= 9.0.0-beta.0, < 9.3.0",">= 10.0.0-beta.0, < 10.0.1"]}],"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":[">=8.0.0-beta.0, <8.5.1",">=9.0.0-beta.0, <9.3.0",">=10.0.0-beta.0, <10.0.1"],"patched":["8.5.1","9.3.0","10.0.1"],"from":["GHSA-2q4g-w47c-4674"],"provenance":"source"}],"summary":{"text":"The flaw is in Electron's handling of the will-navigate event, the mechanism applications use to block navigations to unexpected destinations, which can be bypassed when a sub-frame performs a cross-site top-frame navigation. An attacker able to get content into a sub-frame of an affected Electron app, with no authentication or user interaction required and only a network-reachable path to that content, can use the bypass to navigate the top frame to an unintended destination; sandboxing iframes with the sandbox attribute is the documented workaround.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:22Z"},"euvd":{"id":"EUVD-2020-1401","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-electron-cve-2020-15174","children":[{"from":"CVE-2020-15174","to":"CVE-2026-102673","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["shell/browser/api/electron_api_web_contents.cc"],"commits":["https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b","https://github.com/electron/electron/commit/7ea14d5f55ecb11a30447701ddca16b3feee0bba","https://github.com/electron/electron/commit/e26b2640e7795c42bfb111b76009cbb4327c9a69"],"basis":"shared function","functions":["OpenURLFromTab"]}]},{"from":"CVE-2020-15174","to":"CVE-2026-102674","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["shell/browser/api/electron_api_web_contents.cc"],"commits":["https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b","https://github.com/electron/electron/commit/29fc130569f970e91e355383821a4af0f25724a2","https://github.com/electron/electron/commit/3ecf3e74f4be6e2360644679b0b4698742be0e1d"],"basis":"shared function","functions":["OpenURLFromTab"]}]},{"from":"CVE-2020-15174","to":"CVE-2026-113796","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["shell/browser/api/electron_api_web_contents.cc"],"commits":["https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b","https://github.com/electron/electron/commit/079b9b1594ee62c336adc3aa430d4c1cf62bd51e","https://github.com/electron/electron/commit/0e6aca0618eeae50a18cfd50548b8688820629ed"],"basis":"shared function","functions":["OpenURLFromTab"]}]},{"from":"CVE-2020-15174","to":"CVE-2026-70608","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["shell/browser/api/electron_api_web_contents.cc"],"commits":["https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b","https://github.com/electron/electron/commit/3ff23c52ab364a0afc6ab5bd7851291d3159de57","https://github.com/electron/electron/commit/57cbe329c4ae8aab5ac5ebdcb588adc9a11de0d3"],"basis":"shared function","functions":["OpenURLFromTab"]}]}],"packageHistory":[{"cve":"CVE-2020-4075","published":"2020-07-07","fixed":"8.2.4","kev":false},{"cve":"CVE-2020-4076","published":"2020-07-07","fixed":"8.2.4","kev":false},{"cve":"CVE-2020-4077","published":"2020-07-07","fixed":"8.2.4","kev":false},{"cve":"CVE-2020-15174","published":"2020-10-06","fixed":"10.0.1","kev":false},{"cve":"CVE-2020-15215","published":"2020-10-06","fixed":"11.0.0-beta.6","kev":false,"link":{"from":"CVE-2020-15174","to":"CVE-2020-15215","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"9.3.0","toFixed":"9.3.1","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"10.0.1","toFixed":"10.1.2","daysApart":0}]}},{"cve":"CVE-2020-26272","published":"2021-01-28","fixed":"11.1.0","kev":false},{"cve":"CVE-2021-39184","published":"2021-10-12","fixed":"13.3.0","kev":false}],"package":"npm:electron"}}