MediumGHSA-f9mq-jph6-9mhmCVE-2020-4075
Arbitrary file read via window-open IPC in Electron
Published 7 Jul 2020 · Updated 8 Jul 2026
Affected packages
electronnpm
- Affected
- <7.2.4
- Fixed in
- 7.2.4
Update to the fixed version for your release line, for example:
npm install electron@7.2.4electronnpm
- Affected
- >=8.0.0 <8.2.4
- Fixed in
- 8.2.4
Update to the fixed version for your release line, for example:
npm install electron@8.2.4Details
Impact
The vulnerability allows arbitrary local file read by defining unsafe window options on a child window opened via window.open.
Workarounds
Ensure you are calling event.preventDefault() on all `new-window` events where the url or options is not something you expect.
Fixed Versions
9.0.0-beta.218.2.47.2.4
For more information
If you have any questions or comments about this advisory:
- Email us at [security@electronjs.org](mailto:security@electronjs.org)
Is GHSA-f9mq-jph6-9mhm in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected electron, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.