HighGHSA-2q4g-w47c-4674CVE-2020-15174
Unpreventable top-level navigation
Published 6 Oct 2020 · Updated 8 Jul 2026
Affected packages
electronnpm
- Affected
- >=8.0.0-beta.0 <8.5.1
- Fixed in
- 8.5.1
Update to the fixed version for your release line, for example:
npm install electron@8.5.1electronnpm
- Affected
- >=9.0.0-beta.0 <9.3.0
- Fixed in
- 9.3.0
Update to the fixed version for your release line, for example:
npm install electron@9.3.0electronnpm
- Affected
- >=10.0.0-beta.0 <10.0.1
- Fixed in
- 10.0.1
Update to the fixed version for your release line, for example:
npm install electron@10.0.1Details
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
Is GHSA-2q4g-w47c-4674 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected electron, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.