CVE-2018-1000118: Command Injection in Electron Protocol Handler

electron Updated 02 Oct 2025

Summary

26/03/2018
Yes i
High
8.8

CVE-2018-1000118: Electron protocol handler browser vulnerable to Command Injection. Affects electron versions < 1.8.2-beta5. Fixed in 1.8.2-beta5. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 creating native-like applications for Windows, macOS, and Linux. The Electron protocol handler is responsible for handling custom protocols within Electron applications. This vulnerability in Electron's protocol handler allows an attacker to execute arbitrary commands on the victim's system.

Vulnerability Detail

The vulnerability in Electron's protocol handler arises from a command injection flaw. Specifically, Electron versions 1.8.2-beta.4 and earlier are affected. When a victim opens an Electron protocol handler in their browser, an attacker can exploit this vulnerability to execute arbitrary commands on the victim's system. This can lead to various malicious activities, such as unauthorized access, data theft, or system compromise. The vulnerability was initially reported as CVE-2018-1000006, but an incomplete fix allowed attackers to potentially bypass the blacklisting mechanism.

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.8.2-beta5

This is the first release that contains the fix.

npm install electron@1.8.2-beta5

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. It is crucial to update Electron to the fixed version as soon as possible.

Conclusion

The command injection vulnerability in Electron's protocol handler (CVE-2018-1000118) allows attackers to execute arbitrary commands on the victim's system. It is crucial for developers to update their Electron applications to the fixed version (1.8.2-beta.5 or later) to mitigate this vulnerability. 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.

The Electron protocol handler is responsible for handling custom protocols within Electron applications.

This vulnerability allows an attacker to execute arbitrary commands on the victim's system by exploiting the Electron protocol handler.

The impact of this vulnerability can range from unauthorized access to complete system compromise, depending on the attacker's intentions.

To protect your Electron application, it is essential to update to the fixed version (1.8.2-beta.5 or later) of Electron.

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.8.2-beta5

This is the first release that contains the fix.

npm install electron@1.8.2-beta5

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