# CVE-2020-15174: Unpreventable top-level navigation in Electron

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.35%, higher than 72% of CVEs (2026-11-30)
- Published: 2020-10-06T14:24:04.000Z
- Modified: 2026-07-08T05:59:43.633Z
- Also known as: GHSA-2q4g-w47c-4674
- Weaknesses: CWE-20, CWE-693
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- electron electron: >= 8.0.0-beta.0, < 8.5.1; >= 9.0.0-beta.0, < 9.3.0; >= 10.0.0-beta.0, < 10.0.1
- electron (npm): from 8.0.0-beta.0 before 8.5.1; from 9.0.0-beta.0 before 9.3.0; from 10.0.0-beta.0 before 10.0.1
- electronjs electron: from 8.0.0 before 8.5.1; from 9.0.0 before 9.3.0; from 10.0.0 before 10.0.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:P`

## References

- <https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674> (third-party-advisory, web)
- <https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15174> (advisory)
- <https://github.com/electron/electron> (package)

## Sources

- CVE List: [CVE-2020-15174](https://www.cve.org/CVERecord?id=CVE-2020-15174), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-2q4g-w47c-4674](https://github.com/advisories/GHSA-2q4g-w47c-4674), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15174](https://nvd.nist.gov/vuln/detail/CVE-2020-15174), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15174 · Whole record: https://cve.day/CVE-2020-15174.json · Rebuilt by cve.day 2026-11-25T22:57:55.060Z
