CVE-2026-34779
Published:April 04, 2026
Updated:April 20, 2026
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 38.8.6, 39.8.1, 40.8.0, and 41.0.0-beta.8, on macOS, app.moveToApplicationsFolder() used an AppleScript fallback path that did not properly handle certain characters in the application bundle path. Under specific conditions, a crafted launch path could lead to arbitrary AppleScript execution when the user accepted the move-to-Applications prompt. Apps are only affected if they call app.moveToApplicationsFolder(). Apps that do not use this API are not affected. This issue has been patched in versions 38.8.6, 39.8.1, 40.8.0, and 41.0.0-beta.8.
Affected Packages
electron (NPM):
Affected version(s) >=40.0.0-alpha.2 <40.8.0Fix Suggestion:
Update to version 40.8.0electron (NPM):
Affected version(s) >=0.1.0 <38.8.6Fix Suggestion:
Update to version 38.8.6electron (NPM):
Affected version(s) >=39.0.0-alpha.1 <39.8.1Fix Suggestion:
Update to version 39.8.1electron (NPM):
Affected version(s) >=41.0.0-alpha.1 <41.0.0-beta.8Fix Suggestion:
Update to version 41.0.0-beta.8Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.3
Attack Vector
LOCAL
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.5
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
LOW
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
EPSS
Base Score:
0.02