Unpreventable top-level navigation in Electron
cve-program · CVE-2020-15174
PublishedIn 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.
Read the publisher's advisoryeuvd · EUVD-2020-1401
PublishedIn 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.
Read the publisher's advisorynvd · CVE-2020-15174
PublishedIn 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.
Read the publisher's advisoryosv · GHSA-2q4g-w47c-4674
Published### 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 [email protected]
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2020-15174 · CVE overview and exploitation status
cve-program · CVE-2020-15174
- https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674
- https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b
euvd · EUVD-2020-1401
- https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674
- https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b
nvd · CVE-2020-15174
- https://github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59b
- https://github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674
osv · GHSA-2q4g-w47c-4674
Related changes
Linked by CVE identifierNo related changes are available here.