CVE-2026-70611
JavaScript vulnerability analysis and mitigation

Overview

CVE-2026-70611 is a sandbox escape vulnerability in the Electron framework, described as "DevTools embedder handler executes arbitrary files via shell open." It affects Electron versions prior to 39.8.9, 40.x before 40.9.2, 41.x before 41.2.1, and 42.x before 42.0.0-beta.3. The vulnerability was published on August 5, 2026, with the GitHub Security Advisory (GHSA-f2r8-jv7c-xqmp) originally authored by MarshallOfSound. It carries a CVSS v3.1 base score of 6.9 (Medium/Moderate) (GitHub Advisory).

Technical details

The root cause is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command / OS Command Injection). The DevTools "reveal in file manager" feature, which handles the showItemInFolder embedder message, incorrectly used a shell-open mechanism that could launch (execute) the target file rather than simply revealing it in the file manager. An attacker who has already gained the ability to run script inside the DevTools frontend — for example, via a malicious DevTools extension — can craft a showItemInFolder message pointing to an executable file, causing it to be launched outside the Electron sandbox. The fix, applied across multiple branches via PRs #50937, #50938, #51114, and #51115, replaced the shell-open call with the proper ShowItemInFolder API (GitHub Advisory, PR #50937, PR #51114).

Impact

Successful exploitation allows an attacker to execute arbitrary native code outside the Electron sandbox, achieving a scope change that affects components beyond the vulnerable application's security boundary. The confidentiality and integrity impacts are rated High, as an attacker could read sensitive data and modify files or system state at the privilege level of the Electron process. Availability is not directly impacted. Apps are only affected if DevTools is opened for windows that load untrusted content, or if untrusted DevTools extensions are loaded; apps that do not expose DevTools in these contexts are not at risk (GitHub Advisory).

Exploitation steps

  1. Prerequisite — Gain DevTools script execution: The attacker must first obtain the ability to run JavaScript inside the Electron app's DevTools frontend. This can be achieved by convincing a user to install a malicious DevTools extension, or by exploiting a separate vulnerability that allows script injection into the DevTools context.
  2. Identify a target executable: The attacker identifies a path to an executable file accessible on the local filesystem (e.g., a script, binary, or document with a dangerous handler).
  3. Craft a malicious showItemInFolder message: From within the DevTools frontend, the attacker sends a crafted showItemInFolder embedder IPC message with the path set to the target executable, exploiting the fact that the vulnerable handler uses a shell-open call instead of the proper folder-reveal API.
  4. Trigger file execution outside the sandbox: The Electron embedder handler processes the message and invokes the shell-open mechanism, which launches (executes) the target file rather than revealing it in the file manager, achieving native code execution outside the Electron sandbox (GitHub Advisory, PR #50937).

Indicators of compromise

  • Process: Unexpected child processes spawned by the Electron application process (e.g., executables, scripts, or shell processes not normally launched by the app) shortly after DevTools is opened.
  • Logs: Electron application logs showing DevTools showItemInFolder IPC messages referencing executable file paths rather than typical media or document paths.
  • File System: Presence of unexpected or newly installed DevTools extensions in the Electron app's user data directory (e.g., <app-user-data>/DevTools Extensions/).
  • Network: Outbound network connections initiated by processes spawned from the Electron app that are inconsistent with normal application behavior, potentially indicating post-exploitation activity.

Mitigation and workarounds

Electron has released patched versions: 39.8.9, 40.9.2, 41.2.1, and 42.0.0-beta.3. All Electron application developers should update their bundled Electron runtime to one of these versions. As a workaround, the official advisory recommends not opening DevTools for windows that load untrusted content, and not loading untrusted DevTools extensions. Applications that do not expose DevTools in contexts with untrusted content are not affected and do not require immediate action beyond upgrading (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-71319CRITICAL9.6
  • JavaScript logoJavaScript
  • @nuxt/devtools
NoYesAug 05, 2026
CVE-2026-70611MEDIUM6.9
  • JavaScript logoJavaScript
  • electron
NoYesAug 05, 2026
CVE-2026-70609MEDIUM5.7
  • JavaScript logoJavaScript
  • electron
NoYesAug 05, 2026
CVE-2026-70612MEDIUM5.4
  • JavaScript logoJavaScript
  • electron
NoYesAug 05, 2026
CVE-2026-70610MEDIUM5.4
  • JavaScript logoJavaScript
  • electron
NoYesAug 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management