CVE-2020-15174
mediumpriority · track · 30EPSS 0.013 · 71 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.8–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (9)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-2q4g-w47c-4674Unpreventable top-level navigation2020-10-06ghsa · osvUS
### Impact The `will-navigate` event that apps use to prevent navigations to unexpected destinations [as per our security recommendations](https://www.electronjs.org/docs/tutorial/security) 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](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox). 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
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59bcnnvd
- https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-15174cnnvd
- https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59benisa_euvd
- https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674enisa_euvd
- https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59bPatchThird Party Advisorynvd
- https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674Third Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan