CVE-2020-4075
lowpriority · track · 30EPSS 0.012 · 67 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–high · 2.1–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (8)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-f9mq-jph6-9mhmArbitrary file read via window-open IPC in Electron2020-07-07ghsa · osvUS
### 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`](https://electronjs.org/docs/api/web-contents#event-new-window) events where the `url` or `options` is not something you expect. ### Fixed Versions * `9.0.0-beta.21` * `8.2.4` * `7.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)
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- http://www.nsfocus.net/vulndb/47102cnnvd
- https://github.com/electron/electron/security/advisories/GHSA-f9mq-jph6-9mhmcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-4075cnnvd
- https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824cnnvd
- https://github.com/electron/electron/security/advisories/GHSA-f9mq-jph6-9mhmenisa_euvd
- https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824enisa_euvd
- https://github.com/electron/electron/security/advisories/GHSA-f9mq-jph6-9mhmThird Party Advisorynvd
- https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824Release NotesVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan