CVE-2020-4075
published medium CVSS 3.1 · 6.8Arbitrary file read via window-open IPC in Electron
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| electron | — | electron>= 9.0.0-beta.0, <= 9.0.0-beta.20 · >= 8.0.0, < 8.2.4 · < 7.2.4 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| electron | electron | >= 9.0.0-beta.0, <= 9.0.0-beta.20 (affected)>= 8.0.0, < 8.2.4 (affected)< 7.2.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-552 {"CWE-552":"Files or Directories Accessible to External Parties"}
References
2Provider assertions
2GitHub_M · cna
Arbitrary file read via window-open IPC in Electron
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 11ca9422ec1a318191919329b0541b1143d84f145ebd62000eb8e3bdb567b397
- Ingested
- 23 Sep 2026, 07:50:50 UTC
- Source record
- Official CVE record