Arbitrary Code Injection Affecting electron package, versions <35.7.5>=36.0.0-alpha.1 <36.8.1>=37.0.0-alpha.1 <37.3.1>=38.0.0-alpha.1 <38.0.0-beta.6


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-ELECTRON-12485155
  • published4 Sept 2025
  • disclosed3 Sept 2025
  • creditDarius Houle

Introduced: 3 Sep 2025

NewCVE-2025-55305  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade electron to version 35.7.5, 36.8.1, 37.3.1, 38.0.0-beta.6 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 Arbitrary Code Injection via modification of the resources folder when the embeddedAsarIntegrityValidation and onlyLoadAppFromAsar fuses are enabled. An attacker can execute unauthorized code by altering files within the application directory, bypassing ASAR integrity checks.

Note: This is only exploitable if the application is launched from a filesystem to which the attacker has write access.

CVSS Base Scores

version 4.0
version 3.1