Electron Vulnerable to Remote Command Execution (CVE-2017-12581)

electron Updated 02 Oct 2025

Summary

17/05/2022
Yes i
High
8.1

CVE-2017-12581: Electron vulnerable to remote command execution. Affects electron versions < 1.6.8. Fixed in 1.6.8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Electron is an open-source framework that allows developers to build cross-platform desktop applications using web technologies such as HTML, CSS, and JavaScript. It provides a runtime environment for these applications, enabling them to run on various operating systems. However, Electron versions before 1.6.8 have a vulnerability that allows remote command execution.

Vulnerability Detail

The vulnerability in Electron is due to a bypass in the nodeIntegration feature, which allows remote attackers to execute arbitrary commands on the user's host. This vulnerability can be exploited by bypassing the Same Origin Policy (SOP) and combining it with a privileged URL used internally by Electron. By leveraging this vulnerability, an attacker can execute native Node.js primitives and run OS commands on the target system. The specific method used is the child_process.execFile API call, which can be executed from a chrome-devtools://devtools/bundled/inspector.html window.

How To Fix

Latest published version: 45.0.0 as of 22 Oct 2026

npm install electron@45.0.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.6.8

This is the first release that contains the fix.

npm install electron@1.6.8

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. Upgrading to the patched version of Electron is the recommended solution.

Conclusion

The vulnerability in Electron allows remote command execution, potentially leading to unauthorized access or control of the user's system. To mitigate this vulnerability, developers should upgrade to Electron version 1.6.8 or later and rebuild their applications. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for electron →

Share this vulnerability

FAQ

Electron is an open-source framework for building cross-platform desktop applications using web technologies.

This vulnerability allows remote attackers to execute arbitrary commands on the user's host, potentially leading to unauthorized access or control of the system.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.

Yes, upgrading to Electron version 1.6.8 or later will fix this vulnerability. Make sure to update your Electron dependencies and rebuild your applications.

No, there are no known workarounds for this vulnerability. Upgrading to the patched version of Electron is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for electron.

How To Fix

Latest published version: 45.0.0 as of 22 Oct 2026

npm install electron@45.0.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.6.8

This is the first release that contains the fix.

npm install electron@1.6.8

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback