CVE-2020-15096: Context isolation bypass via Promise in Electron
6.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.46794%
CWE
Published
7/7/2020
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
electron | npm | < 6.1.11 | 6.1.11 |
electron | npm | >= 7.0.0, < 7.2.4 | 7.2.4 |
electron | npm | >= 8.0.0, < 8.2.4 | 8.2.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The core vulnerability stems from CreateProxyForAPI creating context bridge proxies in the source (main world) context rather than the destination (isolated Electron) context. The patches fix this by moving proxy creation into the destination context scope. The pre-patch versions of these functions
would appear in stack traces when malicious code accesses privileged APIs through the context bridge, as they directly handled the insecure proxy creation.