CVE-2020-15096: Electron Context Isolation Bypass Vulnerability

LOW
Advisory Identifier: GHSA-6vrv-94jv-crrg
CVSS 6.8
CWE-501
Published
Advisory Summary

CVE-2020-15096 is a LOW (CVSS 6.8) context isolation bypass vulnerability (CWE-501: Trust Boundary Violation) affecting Electron libraries in the npm ecosystem. The issue involves context isolation bypass via promise in electron. Remediation is available by upgrading affected packages to version 6.1.11, 7.2.4, 8.2.4.

CVE-2020-15096 at a Glance

CVE Identifier CVE-2020-15096
GHSA Identifier GHSA-6vrv-94jv-crrg
Severity LOW
CVSS v3.1 Base Score 6.8
CWE Classification CWE-501: Trust Boundary Violation
Affected Product Electron
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-15096

To remediate this vulnerability, upgrade all affected Electron dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

electron fixed: 6.1.11
npm install electron@6.1.11
electron fixed: 7.2.4
npm install electron@7.2.4
electron fixed: 8.2.4
npm install electron@8.2.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls electron

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2020-15096, inspect your project dependencies using npm:

npm ls electron

Analyze the terminal output to locate any version of Electron in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.11), your application is affected.

Note: The npm ls electron command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-501: Trust Boundary Violation, where the product mixes trusted and untrusted data in the same data structure or structured message. In Electron, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Apps using `contextIsolation` 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` * `6.1.11` ### For more information If you have any questions or comments about this advisory: * Email us at [security@electronjs.org](mailto:security@electronjs.org)

CVE-2020-15096 Affected Electron Versions

3 component(s)
Fixed Versions:
6.1.117.2.48.2.4
Product / Package Ecosystem Affected Versions Fixed 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

References

Frequently Asked Questions

What is CVE-2020-15096?
CVE-2020-15096 is a security vulnerability in Electron involving Context isolation bypass via Promise in Electron under CWE-501: Trust Boundary Violation.
Which Electron versions are affected?
Affected versions include releases prior to 6.1.11, 7.2.4, 8.2.4 across affected packages: electron.
What version fixes CVE-2020-15096?
Upgrading to 6.1.11, 7.2.4, 8.2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is electron affected?
Yes, electron is affected in releases prior to 6.1.11, 7.2.4, 8.2.4. Upgrade your dependency to 6.1.11, 7.2.4, 8.2.4 or later.
What is the CVSS score of CVE-2020-15096?
CVE-2020-15096 has a CVSS v3.1 base score of 6.8 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N.
What CWE is associated with CVE-2020-15096?
CVE-2020-15096 is classified under CWE-501: Trust Boundary Violation (The product mixes trusted and untrusted data in the same data structure or structured message.).
How can I check npm dependencies for CVE-2020-15096?
Run the dependency tree command: 'npm ls electron'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6vrv-94jv-crrg",
  "modified" : "2021-01-07T23:48:19Z",
  "published" : "2020-07-07T00:01:05Z",
  "aliases" : [ "CVE-2020-15096" ],
  "summary" : "Context isolation bypass via Promise in Electron",
  "details" : "### Impact\nApps using `contextIsolation` are affected.\n\nThis 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.\n\n### Workarounds\nThere are no app-side workarounds, you must update your Electron version to be protected.\n\n### Fixed Versions\n* `9.0.0-beta.21`\n* `8.2.4`\n* `7.2.4`\n* `6.1.11`\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [security@electronjs.org](mailto:security@electronjs.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.2.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.2.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/security/advisories/GHSA-6vrv-94jv-crrg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15096"
  }, {
    "type" : "WEB",
    "url" : "https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-501" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-07-06T23:55:38Z",
    "nvd_published_at" : null
  }
}