{"id":"CVE-2020-4075","published":"2020-07-07T00:05:28Z","modified":"2024-08-04T07:52:20Z","title":"Arbitrary file read via window-open IPC in Electron","vendor":"electron","product":"electron","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01205,"percentile":0.69061,"provenance":"source"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"references":[{"url":"https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824","tags":["x_refsource_MISC"]},{"url":"https://github.com/electron/electron/security/advisories/GHSA-f9mq-jph6-9mhm","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":13.81},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":[">= 9.0.0-beta.0, <= 9.0.0-beta.20",">= 8.0.0, < 8.2.4","< 7.2.4"]}],"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":["<7.2.4",">=8.0.0, <8.2.4"],"patched":["7.2.4","8.2.4"],"from":["GHSA-f9mq-jph6-9mhm"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary local file read in Electron, triggered through unsafe window options passed to a child window opened via window.open. An attacker who can get a child window opened with such options can read arbitrary files from the local machine, with no authentication or user interaction required and only network access needed to reach the affected application's content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:04Z"},"euvd":{"id":"EUVD-2020-0553","exploited":false,"provenance":"source"}}