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.
Published: 2026-08-05
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in Electron’s DevTools allows an attacker who can run scripts in the DevTools frontend, such as through a malicious extension, to trigger the reveal‑in‑folder action to launch a target file via the system shell. This bypasses the sandbox and allows native code to run on the host, giving the attacker code execution privileges. The flaw is a command‑line injection weakness described as CWE‑78.

Affected Systems

Electron applications built with any release earlier than 39.8.9, 40.9.2, 41.2.1, or 42.0.0‑beta.3 are affected. The issue applies across all operating systems supported by Electron because the DevTools reveal functionality is platform‑agnostic. The flaw is specific to the electron:electron framework.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity, but no EPSS score is available, so the current exploitation likelihood cannot be precisely quantified. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires that DevTools be opened for windows exposed to untrusted content or that a malicious DevTools extension be installed, so the attack vector is local within the application context. Given the moderate score and the need for a trusted execution path, the overall risk is moderate to high for applications that allow untrusted content or extensions.

Generated by OpenCVE AI on August 5, 2026 at 19:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Electron to version 39.8.9, 40.9.2, 41.2.1, 42.0.0‑beta.3 or newer.
  • Disable or prevent DevTools usage in windows that handle untrusted content and remove any untrusted DevTools extensions.
  • Enforce application policies that restrict installation of third‑party DevTools extensions to trusted sources.

Generated by OpenCVE AI on August 5, 2026 at 19:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-f2r8-jv7c-xqmp Electron: DevTools embedder handler executes arbitrary files via shell open
History

Wed, 05 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Electron
Electron electron
Vendors & Products Electron
Electron electron

Wed, 05 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 05 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
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.
Title Electron: DevTools embedder handler executes arbitrary files via shell open
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 6.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N'}


Subscriptions

Electron Electron
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-06T03:55:50.649Z

Reserved: 2026-08-04T19:50:27.329Z

Link: CVE-2026-70611

cve-icon Vulnrichment

Updated: 2026-08-05T18:26:59.029Z

cve-icon NVD

Status : Received

Published: 2026-08-05T18:17:15.613

Modified: 2026-08-06T05:17:09.840

Link: CVE-2026-70611

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T20:00:11Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')