Advisory

GHSA-f9mq-jph6-9mhm

Also known as: CVE-2020-4075

Summary

Arbitrary file read via window-open IPC in Electron

Details

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-07-07 00:01 UTC
Modified
2026-07-08 05:59 UTC

Affected packages and fixes

electron

npm · All systems

Affected

  • introduced 0, fixed 7.2.4 (semver)

Fixed versions

7.2.4

Fix

electron

npm · All systems

Affected

  • introduced 8.0.0, fixed 8.2.4 (semver)

Fixed versions

8.2.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences