CVE-2020-4075
CVE-2020-4075 is a medium-severity vulnerability in Electronjs Electron with a CVSS 3.x base score of 6.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-552.
Key facts
- Severity: Medium (CVSS 3.x base score 6.8)
- CVSS v2: 2.1
- EPSS exploit prediction: 1% (64th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-552
- Affected product: Electronjs Electron
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2020-4075?
- 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.
- How severe is CVE-2020-4075?
- CVE-2020-4075 has a CVSS 3.x base score of 6.8, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2020-4075 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (64th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2020-4075?
- CVE-2020-4075 primarily affects Electronjs Electron. In total, 22 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2020-4075?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2020-4075 published?
- CVE-2020-4075 was published on 2020-07-07 and last updated on 2026-06-17.
References
- https://github.com/electron/electron/security/advisories/GHSA-f9mq-jph6-9mhm
- https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824
Affected products (22)
- cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:-:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta1:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta10:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta11:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta12:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta13:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta14:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta15:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta16:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta17:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta18:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta19:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta2:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta20:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta3:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta4:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta5:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta6:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta7:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta8:*:*:*:*:*:*
- cpe:2.3:a:electronjs:electron:9.0.0:beta9:*:*:*:*:*:*
More vulnerabilities in Electronjs Electron
- CVE-2017-16151 — Critical (CVSS 9.8): Based on details posted by the ElectronJS team; A remote code execution vulnerability has been discovered in Google…
- CVE-2018-1000118 — High (CVSS 8.8): Github Electron version Electron 1.8.2-beta.4 and earlier contains a Command Injection vulnerability in Protocol…
- CVE-2026-34780 — High (CVSS 8.3): Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From versions…
- CVE-2026-34774 — High (CVSS 8.1): Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to…
- CVE-2018-15685 — High (CVSS 8.1): GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and…
- CVE-2018-1000136 — High (CVSS 8.1): Electron version 1.7 up to 1.7.12; 1.8 up to 1.8.3 and 2.0.0 up to 2.0.0-beta.3 contains an improper handling of values…
All CVEs affecting Electronjs Electron →
Other CWE-552 (Files or Directories Accessible to External Parties) vulnerabilities
- CVE-2025-41240 — Critical (CVSS 10.0): Three Bitnami Helm charts mount Kubernetes Secrets under a predictable path (/opt/bitnami/*/secrets) that is located…
- CVE-2024-56731 — Critical (CVSS 10.0): Gogs is an open source self-hosted Git service. Prior to version 0.13.3, it's still possible to delete files under the…
- CVE-2024-6209 — Critical (CVSS 10.0): Unauthorized file access in WEB Server in ABB ASPECT - Enterprise v3.08.01; NEXUS Series v3.08.01 ; MATRIX Series…
- CVE-2025-14771 — Critical (CVSS 9.9): Files or directories accessible to external parties vulnerability in ABB T-MAC Plus. This issue affects T-MAC Plus:…
- CVE-2024-39931 — Critical (CVSS 9.9): Gogs through 0.13.0 allows deletion of internal files.
- CVE-2021-43821 — Critical (CVSS 9.9): Opencast is an Open Source Lecture Capture & Video Management for Education. Opencast before version 9.10 or 10.6…
Browse all CWE-552 (Files or Directories Accessible to External Parties) vulnerabilities →