{"id":"CVE-2020-15174","aliases":["CVE-2020-15174","GHSA-2q4g-w47c-4674"],"related":[],"kind":"vulnerability","state":"published","title":"Unpreventable top-level navigation in Electron","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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 security@electronjs.org","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Electron anteriores a las versiones 11.0.0-beta.1, 10.0.1, 9.3.0 o 8.5.1, el evento \"will-navigate\" que usa las aplicaciones para evitar la navegación a destinos inesperados según nuestras recomendaciones de seguridad se puede omitir cuando una sub-frame realiza una navegación top-frame a través de los sitios.&#xa0;El problema está parcheado en las versiones 11.0.0-beta.1, 10.0.1, 9.3.0 o 8.5.1. Como una solución temporal, todos sus iframes utilizan el atributo sandbox.&#xa0;Esto impedirá que creen navegaciones top-frame y es una buena práctica de todos modos","source":"nvd"}],"published":"2020-10-06T14:24:04.000Z","modified":"2026-07-08T05:59:43.633Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-693"],"affected":[{"ranges":[{"version":">= 8.0.0-beta.0, < 8.5.1","status":"affected"},{"version":">= 9.0.0-beta.0, < 9.3.0","status":"affected"},{"version":">= 10.0.0-beta.0, < 10.0.1","status":"affected"}],"vendor":"electron","product":"electron","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.0.0-beta.0","status":"affected","fixed":"8.5.1"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.0.0-beta.0","status":"affected","fixed":"9.3.0"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"10.0.0-beta.0","status":"affected","fixed":"10.0.1"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"8.0.0","fixed":"8.5.1"},{"status":"affected","introduced":"9.0.0","fixed":"9.3.0"},{"status":"affected","introduced":"10.0.0","fixed":"10.0.1"}],"vendor":"electronjs","product":"electron","cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15174","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15174","url":"https://www.cve.org/CVERecord?id=CVE-2020-15174","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:22.398Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2q4g-w47c-4674","url":"https://github.com/advisories/GHSA-2q4g-w47c-4674","licence":"CC-BY-4.0","modified":"2026-07-08T05:59:43.633Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15174","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15174","licence":"Public domain","modified":"2026-06-17T02:56:11.870Z"}],"updatedAt":"2026-11-25T22:57:55.060Z","epss":{"score":0.01346,"percentile":0.71581,"date":"2026-11-30T12:00:22.000Z"}}