CVE-2026-70611
JSON

6.9medium

Electron: DevTools embedder handler executes arbitrary files via shell open

Severity
6.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-f2r8-jv7c-xqmp

Description

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.9, 40.9.2, 41.2.1, and 42.0.0-beta.3, the DevTools reveal in file manager action could launch the target file rather than reveal it. An attacker with a separate means of running script inside the DevTools frontend, such as a malicious DevTools extension, could use showItemInFolder handling to execute native code outside the sandbox when DevTools is opened for windows exposed to untrusted content or untrusted DevTools extensions. This issue is fixed in 39.8.9, 40.9.2, 41.2.1, and 42.0.0-beta.3.

Affected

Product or packageVersionsReported by
electron electron< 39.8.9, >= 40.0.0-alpha.1, < 40.9.2, >= 41.0.0-alpha.1, < 41.2.1, >= 42.0.0-alpha.1, < 42.0.0-beta.3CVE List
electron (npm)before 39.8.9, from 40.0.0-alpha.1 before 40.9.2, from 41.0.0-alpha.1 before 41.2.1, from 42.0.0-alpha.1 before 42.0.0-beta.3GitHub Advisory Database
electronjs electronbefore 39.8.9, from 40.0.0 before 40.9.2, from 41.0.0 before 41.2.1, 42.0.0NVD

All scores

GitHub_M6.9medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N
GitHub6.9medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.9, 40.9.2, 41.2.1, and 42.0.0-beta.3, the DevTools reveal in file manager action could launch the target file rather than reveal it. An attacker with a separate means of running script inside the DevTools frontend, such as a malicious DevTools extension, could use showItemInFolder handling to execute native code outside the sandbox when DevTools is opened for windows exposed to untrusted content or untrusted DevTools extensions. This issue is fixed in 39.8.9, 40.9.2, 41.2.1, and 42.0.0-beta.3.

GitHub Advisory Database
Impact

The DevTools "reveal in file manager" action could launch the target file rather than reveal it. An attacker with a separate means of running script inside the DevTools frontend (such as a malicious DevTools extension) could use this to execute native code outside the sandbox.

Apps are only affected if DevTools is opened for windows exposed to untrusted content or untrusted DevTools extensions. Apps that do not open DevTools in that context are not affected.

Workarounds

Do not open DevTools for windows that load untrusted content, and do not load untrusted DevTools extensions.

Fixed Versions
  • 42.0.0-beta.3
  • 41.2.1
  • 40.9.2
  • 39.8.9
For more information

If you have any questions or comments about this advisory, email Electron at security@electronjs.org

References

https://github.com/electron/electron/security/advisories/GHSA-f2r8-jv7c-xqmpvendor-advisory, web
https://github.com/electron/electron/pull/50937issue-tracking, patch, web
https://github.com/electron/electron/pull/50938issue-tracking, patch, web
https://github.com/electron/electron/pull/51114issue-tracking, patch, web
https://github.com/electron/electron/pull/51115issue-tracking, patch, web
https://github.com/electron/electron/commit/10fb5b39c5287f70c4bbcab4c24197f3871ec322patch, web
https://github.com/electron/electron/commit/1b8a298d629d5a642c816ea5f7505359de17b771patch
https://github.com/electron/electron/commit/27bf1cae9274d5025684c7268496f435b7e06b44patch, web
https://github.com/electron/electron/commit/7a1eb7e5585991b3726cedb890a6244f327f43depatch, web
https://github.com/electron/electron/releases/tag/v39.8.9release-notes, web
https://github.com/electron/electron/releases/tag/v40.9.2release-notes, web
https://github.com/electron/electron/releases/tag/v41.2.1release-notes, web

Sources

SourceRecordLicence
CVE ListCVE-2026-70611 changed 2026-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-f2r8-jv7c-xqmp changed 2026-08-05CC-BY-4.0
NVDCVE-2026-70611 changed 2026-11-03Public domain