Live threats

All CVEs / Electronjs

CVE-2020-4075Electronjs Electron

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.2%
probability of exploitation in 30 days · percentile 68
Auth required
No
Published
Jul 7, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-552
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Electron.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm electron < 7.2.4 7.2.4 npm install electron@7.2.4
npm electron ≥ 8.0.0 < 8.2.4 8.2.4 npm install electron@8.2.4

Per OSV / GitHub Advisories (GHSA-f9mq-jph6-9mhm). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
electronjselectron≥ 7.0.0 < 7.2.4
electronjselectron≥ 8.0.0 < 8.2.4
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0
electronjselectron9.0.0

Official sources

References

Links published by the sources. Open them with care.