{"id":"CVE-2020-15174","details":"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.","aliases":["GHSA-2q4g-w47c-4674"],"modified":"2026-08-18T11:46:23.351499Z","published":"2020-10-06T18:15:14.283Z","references":[{"type":"ADVISORY","url":"https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674"},{"type":"FIX","url":"https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/electron/electron","events":[{"introduced":"1af3a71fdbb3130fd581b12d8f5a7440e7a04fc6"},{"fixed":"5b9088a7cf8cd4989d78ce9d4ed8f522e9181728"},{"introduced":"4da01641ce50cf5a8b6f39717e4c447f89455dfa"},{"fixed":"fb03807cd21915ddc3aa2521ba4f5ba14597bd7e"},{"introduced":"c5b5ca50a67a237700f649adccf163f0b9aad0c5"},{"fixed":"4df5ecdf8257f95273d2fd88a7b0536d64a4a019"},{"fixed":"18613925610ba319da7f497b6deed85ad712c59b"}],"database_specific":{"cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"8.0.0"},{"fixed":"8.5.1"},{"introduced":"9.0.0"},{"fixed":"9.3.0"},{"introduced":"10.0.0"},{"fixed":"10.0.1"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v10.0.0","v9.2.1","v8.5.0","v9.2.0","v9.1.2","v8.4.1","v9.1.1","v8.4.0","v9.1.0","v8.3.4","v9.0.6","v9.0.5","v8.3.3","v8.3.2","v9.0.4","v9.0.3","v9.0.2","v8.3.1","v9.0.1","v9.0.0","v8.3.0","v8.2.5","v8.2.4","v8.2.3","v8.2.2","v8.2.1","v8.2.0","v8.1.1","v8.1.0","v8.0.3","v8.0.2","v8.0.1","v8.0.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-15174.json","vanir_signatures_modified":"2026-08-18T11:46:23Z","vanir_signatures":[{"source":"https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b","target":{"file":"shell/browser/api/electron_api_web_contents.cc","function":"WebContents::OpenURLFromTab"},"deprecated":false,"digest":{"function_hash":"199102409340917251199271695657280783075","length":458},"id":"CVE-2020-15174-03ae97a3","signature_type":"Function","signature_version":"v1"},{"signature_version":"v1","source":"https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b","target":{"file":"shell/browser/api/electron_api_web_contents.cc"},"deprecated":false,"digest":{"line_hashes":["18876523215243715297215661159503178326","105122872310601477653131098437781229927","176231553178074587801000684218715842294","167506055793440953346741244502466215576","255993982251929902972200033026413580857"],"threshold":0.9},"id":"CVE-2020-15174-2e06a103","signature_type":"Line"},{"target":{"file":"shell/browser/electron_navigation_throttle.h"},"deprecated":false,"digest":{"line_hashes":["18493730393850289687302545064610393440","147977453749043512498612488010979206449","308911388708264872865473406063814037530"],"threshold":0.9},"id":"CVE-2020-15174-6aef6df8","signature_type":"Line","signature_version":"v1","source":"https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b"},{"deprecated":false,"digest":{"line_hashes":["1695771876731390988285255923745959558","321385116936480687537501712091518721339","207554722948287550673032156114503070072"],"threshold":0.9},"id":"CVE-2020-15174-8f3204c3","signature_type":"Line","signature_version":"v1","source":"https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b","target":{"file":"shell/browser/electron_navigation_throttle.cc"}}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L"}]}