Arbitrary Code Execution Affecting electron package, versions >=23.0.0-alpha.1 <23.3.13 >=24.0.0-alpha.1 <24.7.1 >=25.0.0-alpha.1 <25.5.0
Threat Intelligence
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 ID SNYK-JS-ELECTRON-5885041
- published 7 Sep 2023
- disclosed 6 Sep 2023
- credit MarshallOfSound
Introduced: 6 Sep 2023
CVE-2023-39956 Open this link in a new tabHow to fix?
Upgrade electron
to version 23.3.13, 24.7.1, 25.5.0 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 Execution allowing out-of-package code execution when apps are launched as command-line executables.
Note:
Specifically, this issue can only be exploited if the following conditions are met:
Your app is launched with an attacker-controlled working directory.
The attacker has the ability to write files to that working directory.