7.5
CWE
552
Advisory Published
Updated

CVE-2020-4075: Arbitrary file read via window-open IPC in Electron

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 SoftwareAffected VersionHow to fix
Atom Electron>=7.0.0<7.2.4
Atom Electron>=8.0.0<8.2.4
Atom Electron=9.0.0
Atom Electron=9.0.0-beta1
Atom Electron=9.0.0-beta10
Atom Electron=9.0.0-beta11
Atom Electron=9.0.0-beta12
Atom Electron=9.0.0-beta13
Atom Electron=9.0.0-beta14
Atom Electron=9.0.0-beta15
Atom Electron=9.0.0-beta16
Atom Electron=9.0.0-beta17
Atom Electron=9.0.0-beta18
Atom Electron=9.0.0-beta19
Atom Electron=9.0.0-beta2
Atom Electron=9.0.0-beta20
Atom Electron=9.0.0-beta3
Atom Electron=9.0.0-beta4
Atom Electron=9.0.0-beta5
Atom Electron=9.0.0-beta6
Atom Electron=9.0.0-beta7
Atom Electron=9.0.0-beta8
Atom Electron=9.0.0-beta9

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2020-4075?

    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.

  • What is the severity of CVE-2020-4075?

    The severity of CVE-2020-4075 is high with a CVSS score of 7.5.

  • How can I fix CVE-2020-4075?

    As a workaround, ensure you are calling event.preventDefault() on all new-window events where the url or options is not trusted.

  • Which versions of Electron are affected by CVE-2020-4075?

    Electron versions before 7.2.4, 8.2.4, and 9.0.0-beta21 are affected by CVE-2020-4075.

  • Where can I find more information about 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).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203