CVE-2020-4075Electronjs Electron
High 7.5 No auth needed
Follow: this CVE · Electronjs · Electronjs Electron We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- No
- Published
- Jul 7, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-552
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Electron.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | electron |
< 7.2.4 |
7.2.4 |
npm install electron@7.2.4 |
| npm | electron |
≥ 8.0.0 < 8.2.4 |
8.2.4 |
npm install electron@8.2.4 |
Per OSV / GitHub Advisories (GHSA-f9mq-jph6-9mhm). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| 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 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
| electronjs | electron | 9.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- www.electronjs.org Release Notes Vendor Advisory