{"id":"GHSA-f9mq-jph6-9mhm","summary":"Arbitrary file read via window-open IPC in Electron","details":"### Impact\nThe vulnerability allows arbitrary local file read by defining unsafe window options on a child window opened via window.open.\n\n### Workarounds\nEnsure 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.\n\n### Fixed Versions\n* `9.0.0-beta.21`\n* `8.2.4`\n* `7.2.4`\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@electronjs.org](mailto:security@electronjs.org)","aliases":["CVE-2020-4075"],"modified":"2026-07-08T05:59:36.781612037Z","published":"2020-07-07T00:01:13Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-552"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-07-06T23:54:56Z"},"references":[{"type":"WEB","url":"https://github.com/electron/electron/security/advisories/GHSA-f9mq-jph6-9mhm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-4075"},{"type":"WEB","url":"https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824"}],"affected":[{"package":{"name":"electron","ecosystem":"npm","purl":"pkg:npm/electron"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"7.2.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/07/GHSA-f9mq-jph6-9mhm/GHSA-f9mq-jph6-9mhm.json"}},{"package":{"name":"electron","ecosystem":"npm","purl":"pkg:npm/electron"},"ranges":[{"type":"SEMVER","events":[{"introduced":"8.0.0"},{"fixed":"8.2.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/07/GHSA-f9mq-jph6-9mhm/GHSA-f9mq-jph6-9mhm.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N"}]}