Skip to content

Arbitrary file read via window-open IPC

Low
MarshallOfSound published GHSA-f9mq-jph6-9mhm Jul 6, 2020

Package

npm electron (npm)

Affected versions

>=9.0.0-beta.0 <=9.0.0-beta.20 || >=8.0.0-beta.0 <=8.2.3 || >= 7.0.0-beta < =7.2.3 || <7

Patched versions

7.2.4,8.2.4,9.0.0-beta.21

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 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:

Severity

Low

CVE ID

CVE-2020-4075

Weaknesses

No CWEs