Skip to content
OpenAdvisories
Medium · 6.8 CVE-2020-4075 EUVD-2020-0553GHSA-f9mq-jph6-9mhm

Arbitrary file read via window-open IPC in Electron

Published Jul 7, 2020 · Updated Aug 4, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
electron electron >= 9.0.0-beta.0, <= 9.0.0-beta.20, >= 8.0.0, < 8.2.4, < 7.2.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm electron < 7.2.4 7.2.4 GHSA-f9mq-jph6-9mhm
npm electron >= 8.0.0, < 8.2.4 8.2.4 GHSA-f9mq-jph6-9mhm

References