CVE-2020-26272: Electron IPC Messages Delivered To The Vulnerability
MODERATECVE-2020-26272 is a MODERATE (CVSS 5.4) ipc messages delivered to the vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Electron libraries in the npm ecosystem. The issue involves ipc messages delivered to the wrong frame in electron. Remediation is available by upgrading affected packages to version 9.4.0, 10.2.0, 11.1.0.
CVE-2020-26272 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N).
How to Fix CVE-2020-26272
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.
npm install electron@9.4.0
npm install electron@10.2.0
npm install electron@11.1.0
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-26272, 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 9.4.0), 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-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. 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
CVE-2020-26272 Affected Electron Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
electron
|
npm |
< 9.4.0
|
9.4.0
|
|
electron
|
npm |
≥ 10.0.0
< 10.2.0
|
10.2.0
|
|
electron
|
npm |
≥ 11.0.0
< 11.1.0
|
11.1.0
|
References
Frequently Asked Questions
What is CVE-2020-26272?
Which Electron versions are affected?
What version fixes CVE-2020-26272?
Is electron affected?
What is the CVSS score of CVE-2020-26272?
What CWE is associated with CVE-2020-26272?
How can I check npm dependencies for CVE-2020-26272?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hvf8-h2qh-37m9",
"modified" : "2025-05-27T15:20:19Z",
"published" : "2021-01-28T19:11:34Z",
"aliases" : [ "CVE-2020-26272" ],
"summary" : "IPC messages delivered to the wrong frame in Electron",
"details" : "### Impact\nIPC messages sent from the main process to a subframe in the renderer process, through `webContents.sendToFrame`, `event.reply` or when using the `remote` module, can in some cases be delivered to the wrong frame.\n\nIf your app does ANY of the following, then it is impacted by this issue:\n- Uses `remote`\n- Calls `webContents.sendToFrame`\n- Calls `event.reply` in an IPC message handler\n\n### Patches\nThis has been fixed in the following versions:\n\n- 9.4.0\n- 10.2.0\n- 11.1.0\n- 12.0.0-beta.9\n\n### Workarounds\nThere are no workarounds for this issue.\n\n### For more information\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "electron"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.4.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "electron"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.0.0"
}, {
"fixed" : "10.2.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "electron"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0"
}, {
"fixed" : "11.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/electron/electron/security/advisories/GHSA-hvf8-h2qh-37m9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26272"
}, {
"type" : "WEB",
"url" : "https://github.com/electron/electron/pull/26875"
}, {
"type" : "WEB",
"url" : "https://github.com/electron/electron/commit/07a1c2a3e5845901f7e2eda9506695be58edc73c"
}, {
"type" : "WEB",
"url" : "https://github.com/electron/electron/commit/0bbd268eb4caf35604443df5ff196980dd49e208"
}, {
"type" : "WEB",
"url" : "https://github.com/electron/electron/commit/36c695ce2a7e22c07fe1e30c61c00d20371daee2"
}, {
"type" : "WEB",
"url" : "https://github.com/electron/electron/commit/429400040ecb16a21d19936658579e65a797e4cc"
}, {
"type" : "WEB",
"url" : "https://github.com/electron/electron/commit/5c8e7e8b7f485ceafa8b271086d7b87e1de9dedd"
}, {
"type" : "WEB",
"url" : "https://github.com/electron/electron/releases/tag/v9.4.0"
}, {
"type" : "WEB",
"url" : "https://www.electronjs.org/releases/stable?version=9#9.4.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-668" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-01-28T19:11:05Z",
"nvd_published_at" : "2021-01-28T19:15:00Z"
}
}