Electron vulnerable to remote command execution
Electron before 1.6.8 allows remote command execution because of a nodeIntegration bypass vulnerability. This also affects all applications that bundle Electron code equivalent to 1.6.8 or earlier. Bypassing the Same Origin Policy (SOP) is a precondition; however, recent Electron versions do not have strict SOP enforcement. Combining an SOP bypass with a privileged URL internally used by Electron, it was possible to execute native Node.js primitives in order to run OS commands on the user's host. Specifically, a chrome-devtools://devtools/bundled/inspector.html window could be used to eval a Node.js child_process.execFile API call.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | electron | < 1.6.8 | 1.6.8 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-12581
- https://github.com/electron/electron/commit/05b6d91bf4c1e0ee65eeef70cd5d1bd1df125644
- https://blog.doyensec.com/2017/08/03/electron-framework-security.html
- https://doyensec.com/resources/us-17-Carettoni-Electronegativity-A-Study-Of-Electron-Security.pdf
- https://github.com/electron/electron
- CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-78- Platform
- npm
- Package
electron- Disclosed
- 17.05.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-7fv9-m79r-j9x8 - CC BY 4.0
Vulnerability history: electron
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 71
- First → latest
- 10.2017 09.2026
- Without a fix
- 0
- Exploited in attacks
- 3
Severity breakdown
- Critical 3
- High 26
- Medium 32
- Low 10
Disclosures per year
- 2017: 1
- 2018: 5
- 2019: 0
- 2020: 6
- 2021: 2
- 2022: 7
- 2023: 6
- 2024: 0
- 2025: 3
- 2026: 41
-
Electron vulnerable to remote command execution this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.