Arbitrary Code Injection Affecting desktop-electron package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (3rd 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 Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-DESKTOPELECTRON-17879719
  • published7 Jul 2026
  • disclosed12 Jun 2026
  • creditmustafa-sec

Introduced: 12 Jun 2026

CVE-2026-42890  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

desktop-electron is a My Electron application description

Affected versions of this package are vulnerable to Arbitrary Code Injection via the ELECTRON_RUN_AS_NODE environment variable. An attacker can execute arbitrary code with the application's entitlements and code signature by launching the signed binary with this variable set or by placing a file on disk and controlling command-line arguments. This can bypass macOS Gatekeeper review.

CVSS Base Scores

version 4.0
version 3.1