Command Injection Affecting electron package, versions <39.8.9>=40.0.0-alpha.2 <40.9.2>=41.0.0-alpha.1 <41.2.1>=42.0.0-alpha.1 <42.0.0-beta.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ELECTRON-18563345
  • published6 Aug 2026
  • disclosed5 Aug 2026
  • creditUnknown

Introduced: 5 Aug 2026

NewCVE-2026-70611  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade electron to version 39.8.9, 40.9.2, 41.2.1, 42.0.0-beta.3 or higher.

Overview

electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS.

Affected versions of this package are vulnerable to Command Injection in the DevTools embedder handler. An attacker can execute arbitrary files outside the sandbox by leveraging the "reveal in file manager" action to launch the target file, provided they have a means to run scripts inside the DevTools frontend, such as through a malicious DevTools extension.

Note: This is only exploitable if DevTools is opened for windows exposed to untrusted content or untrusted DevTools extensions.

Workaround

This vulnerability can be mitigated by not opening DevTools for windows that load untrusted content and not loading untrusted DevTools extensions.

CVSS Base Scores

version 4.0
version 3.1