# CVE-2026-70611: Electron command injection in DevTools reveal in file manager

Source: https://junglewise.ai/threats/cve-2026-70611-electron-command-injection-in-devtools-reveal-in-file-manager  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-05. Updated: 2026-08-05  
License: CC BY 4.0 with a link back

CVE-2026-70611 · Severity: medium · CVSS 6.9 · Published 2026-08-05

Electron is a framework used to build desktop applications like Slack, Discord, and VS Code. A vulnerability in its developer tools (DevTools) could allow a malicious extension or script to bypass security protections and execute unauthorized files on a user's computer. This could lead to the execution of malicious code outside of the application's restricted environment, potentially compromising the host system.

Technologies: [electron (npm)](https://junglewise.ai/threats/technologies/electron). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-70611 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-70611 being exploited in the wild.

**How severe is CVE-2026-70611?** Medium severity, with a CVSS score of 6.9, published 5 August 2026.

**Which products and versions are affected?** electron (npm) SEMVER:introduced=0,fixed=39.8.9.

**Is there a fix for CVE-2026-70611?** Yes. electron (npm): upgrade to 39.8.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-70611 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-70611?** Check whether you run electron (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- electron (npm): upgrade to 39.8.9 or later

  ```sh
  npm install electron@39.8.9
  ```


## Technical details

A command injection vulnerability (CWE-78) exists in the Electron DevTools embedder handler. The 'reveal in file manager' action incorrectly handles file paths, allowing it to launch a target file rather than simply revealing its location in the OS file explorer. An attacker who can execute scripts within the DevTools frontend—for instance, via a malicious DevTools extension—can exploit this to achieve native code execution outside the renderer sandbox. The vulnerability is patched in versions 39.8.9, 40.9.2, 41.2.1, and 42.0.0-beta.3 by migrating the handler to use the more secure 'ShowItemInFolder' method.

## Affected products

- 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.3

## Identifiers

- CVE-2026-70611
- GHSA-f2r8-jv7c-xqmp

## Timeline

- 2026-04-11: patched: Initial backport PRs for fix merged
- 2026-07-27: disclosed
- 2026-08-05: advisory

## References

- [https://github.com/electron/electron/security/advisories/GHSA-f2r8-jv7c-xqmp](https://github.com/electron/electron/security/advisories/GHSA-f2r8-jv7c-xqmp)
- [https://github.com/electron/electron/pull/50937](https://github.com/electron/electron/pull/50937)
- [https://github.com/electron/electron/pull/50938](https://github.com/electron/electron/pull/50938)
- [https://github.com/electron/electron/pull/51114](https://github.com/electron/electron/pull/51114)
- [https://github.com/electron/electron/pull/51115](https://github.com/electron/electron/pull/51115)
- [https://github.com/electron/electron/commit/10fb5b39c5287f70c4bbcab4c24197f3871ec322](https://github.com/electron/electron/commit/10fb5b39c5287f70c4bbcab4c24197f3871ec322)

## Related threats

- [Electron certificate blocklist bypass in Node.js TLS](https://junglewise.ai/threats/cve-2026-115570-electron-is-a-framework-for-writing-cross-platform-desktop)
- [Electron: Off-screen rendering on macOS trusts GPU-supplied frame geometry](https://junglewise.ai/threats/cve-2026-114124-electron-is-a-framework-for-writing-cross-platform-desktop)
- [Electron: Frame subscription trusts GPU-supplied frame geometry](https://junglewise.ai/threats/cve-2026-114122-electron-is-a-framework-for-writing-cross-platform-desktop)
- [Electron external protocol permission misattribution](https://junglewise.ai/threats/cve-2026-114121-electron-is-a-framework-for-writing-cross-platform-desktop)
- [Electron HID/USB permission checks origin spoofing in iframes](https://junglewise.ai/threats/cve-2026-113800-electron-hid-and-usb-permission-checks-can-be-attributed-to-the)
