7.5high
Unpreventable top-level navigation in Electron
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.35% (higher than 72% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-2q4g-w47c-4674
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| 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 | GitHub Advisory Database |
| 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 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
11.0.0-beta.110.0.19.3.08.5.1
Workarounds
Sandbox all your iframes using the sandbox attribute. This will prevent them creating top-frame navigations and is good practice anyway.
For more information
If you have any questions or comments about this advisory:
- Email us at security@electronjs.org
NVD (es)
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. 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. Esto impedirá que creen navegaciones top-frame y es una buena práctica de todos modos
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15174 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2q4g-w47c-4674 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-15174 changed 2026-06-17 | Public domain |