Vulnerability · Published Jan 28, 2021 · Assigned by GitHub_M
CVE-2020-26272Electron vulnerable to ID collision when routing IPC messages to renderers containing OOPIFs
Medium 5.4
In plain English
A medium-severity security flaw in electron from electron. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
The Electron framework lets users write cross-platform desktop applications using JavaScript, HTML and CSS. In versions of Electron IPC prior to 9.4.0, 10.2.0, 11.1.0, and 12.0.0-beta.9, 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. If your app uses remote, calls webContents.sendToFrame, or calls event.reply in an IPC message handler then it is impacted by this issue. This has been fixed in versions 9.4.0, 10.2.0, 11.1.0, and 12.0.0-beta.9. There are no known workarounds for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | electron | 9.4.0 | GHSA-hvf8-h2qh-37m9 |
| npm | electron | 10.2.0 | GHSA-hvf8-h2qh-37m9 |
| npm | electron | 11.1.0 | GHSA-hvf8-h2qh-37m9 |
Affected products (as reported)
Weakness: CWE-668 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
References
- https://github.com/electron/electron/security/advisories/GHSA-hvf8-h2qh-37m9 x_refsource_CONFIRM
- https://github.com/electron/electron/pull/26875 x_refsource_MISC
- https://github.com/electron/electron/commit/07a1c2a3e5845901f7e2eda9506695be58edc73c x_refsource_MISC
- https://github.com/electron/electron/commit/0bbd268eb4caf35604443df5ff196980dd49e208 x_refsource_MISC
- https://github.com/electron/electron/commit/36c695ce2a7e22c07fe1e30c61c00d20371daee2 x_refsource_MISC
- https://github.com/electron/electron/commit/429400040ecb16a21d19936658579e65a797e4cc x_refsource_MISC
- https://github.com/electron/electron/commit/5c8e7e8b7f485ceafa8b271086d7b87e1de9dedd x_refsource_MISC
- https://github.com/electron/electron/releases/tag/v9.4.0 x_refsource_MISC
- https://www.electronjs.org/releases/stable?version=9#9.4.0 x_refsource_MISC