CVE-2020-4075

Arbitrary file read via window-open IPC in Electron

Published Jul 7, 2020 CVSS 3.1 · 6.8 Medium EPSS 1.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2020-0553 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.
Github GHSA Github GHSA GHSA-f9mq-jph6-9mhm Arbitrary file read via window-open IPC in Electron
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 4, 2024, 7:52 AM
Reserved
Dec 30, 2019, 12:00 AM
Status
Modified
Published
Jul 7, 2020, 12:15 AM
Modified
Jun 17, 2026, 3:19 AM