GHSA-f9mq-jph6-9mhm
Arbitrary file read via window-open IPC in Electron
At a glance
- Published
- Updated
- CVE
- CVE-2020-4075
- CVSS_V3
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Description
### 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)
Affected packages
| Package | Versions |
|---|---|
| npm · electron | introduced 0, fixed 7.2.4 |
| npm · electron | introduced 8.0.0, fixed 8.2.4 |
References
- https://github.com/electron/electron/security/advisories/GHSA-f9mq-jph6-9mhm WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-4075 ADVISORY
- https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |