HighGHSA-2q4g-w47c-4674CVE-2020-15174

Unpreventable top-level navigation

Published 6 Oct 2020 · Updated 8 Jul 2026

Is your project on an affected electron?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Affected packages

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.1
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.0
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.1

Details

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.1
  • 10.0.1
  • 9.3.0
  • 8.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.

More advisories for electron

  • HighCVE-2026-115570Electron: Mitigation for compromised eMudhra intermediate certificates · 23 Oct 2026
  • MediumCVE-2026-113796Electron: SameSite cookie restrictions are not applied to windows opened from links · 22 Oct 2026
  • MediumCVE-2026-113798Electron: Pointer lock permission requests can be attributed to the wrong frame · 22 Oct 2026
  • LowCVE-2026-113797Electron: Extension tabs.query returns tab URLs and titles without the tabs permission · 22 Oct 2026
  • LowCVE-2026-114122Electron: Frame subscription trusts GPU-supplied frame geometry · 22 Oct 2026
  • LowCVE-2026-114124Electron: Off-screen rendering on macOS trusts GPU-supplied frame geometry · 22 Oct 2026
All 79 advisories for electron

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.