Advisory

GHSA-h9jc-284h-533g

Also known as: CVE-2020-4077

Summary

Context isolation bypass via contextBridge in Electron

Details

Impact
Apps using both contextIsolation and contextBridge are affected.

This is a context isolation bypass, meaning that code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions.

Workarounds
There are no app-side workarounds, you must update your Electron version to be protected.

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

High Basis: The source's own band: HIGH

Dates

Published
2020-07-07 00:01 UTC
Modified
2026-07-08 06:29 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