First published: Tue Jul 07 2020(Updated: )
In Electron before versions 7.2.4, 8.2.4, and 9.0.0-beta21, arbitrary local file read is possible by defining unsafe window options on a child window opened via window.open. As a workaround, ensure you are calling `event.preventDefault()` on all new-window events where the `url` or `options` is not something you expect. This is fixed in versions 9.0.0-beta.21, 8.2.4 and 7.2.4.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Electronjs Electron | >=7.0.0<7.2.4 | |
Electronjs Electron | >=8.0.0<8.2.4 | |
Electronjs Electron | =9.0.0 | |
Electronjs Electron | =9.0.0-beta1 | |
Electronjs Electron | =9.0.0-beta10 | |
Electronjs Electron | =9.0.0-beta11 | |
Electronjs Electron | =9.0.0-beta12 | |
Electronjs Electron | =9.0.0-beta13 | |
Electronjs Electron | =9.0.0-beta14 | |
Electronjs Electron | =9.0.0-beta15 | |
Electronjs Electron | =9.0.0-beta16 | |
Electronjs Electron | =9.0.0-beta17 | |
Electronjs Electron | =9.0.0-beta18 | |
Electronjs Electron | =9.0.0-beta19 | |
Electronjs Electron | =9.0.0-beta2 | |
Electronjs Electron | =9.0.0-beta20 | |
Electronjs Electron | =9.0.0-beta3 | |
Electronjs Electron | =9.0.0-beta4 | |
Electronjs Electron | =9.0.0-beta5 | |
Electronjs Electron | =9.0.0-beta6 | |
Electronjs Electron | =9.0.0-beta7 | |
Electronjs Electron | =9.0.0-beta8 | |
Electronjs Electron | =9.0.0-beta9 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2020-4075 is a vulnerability in Electron before versions 7.2.4, 8.2.4, and 9.0.0-beta21 that allows arbitrary local file read by defining unsafe window options on a child window opened via window.open.
The severity of CVE-2020-4075 is high with a CVSS score of 7.5.
As a workaround, ensure you are calling event.preventDefault() on all new-window events where the url or options is not trusted.
Electron versions before 7.2.4, 8.2.4, and 9.0.0-beta21 are affected by CVE-2020-4075.
More information about CVE-2020-4075 can be found at the following references: [GitHub Advisory](https://github.com/electron/electron/security/advisories/GHSA-f9mq-jph6-9mhm), [Electron Release Notes](https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824).