Loading advisory.
Loading advisory.
Electron: Renderer command-line switch injection via undocumented commandLineSwitches webPreference
An undocumented commandLineSwitches webPreference allowed arbitrary switches to be appended to the renderer process command line.
Published 2026-04-03 02:39 UTC · Modified 2026-07-15 01:03 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| electron | npm | < 38.8.6 >= 39.0.0-alpha.1, < 39.8.0 >= 40.0.0-alpha.1, < 40.7.0 >= 41.0.0-alpha.1, < 41.0.0-beta.8 | 38.8.6, 39.8.0, 40.7.0, 41.0.0-beta.8 | npm install electron@38.8.6npm install electron@39.8.0npm install electron@40.7.0npm install electron@41.0.0-beta.8 |
An undocumented commandLineSwitches webPreference allowed arbitrary switches to be appended to the renderer process command line. Apps that construct webPreferences by spreading untrusted configuration objects may inadvertently allow an attacker to inject switches that disable renderer sandboxing or web security controls.
Apps are only affected if they construct webPreferences from external or untrusted input without an allowlist. Apps that use a fixed, hardcoded webPreferences object are not affected.
Do not spread untrusted input into webPreferences. Use an explicit allowlist of permitted preference keys when constructing BrowserWindow or webContents options from external configuration.
41.0.0-beta.8
40.7.0
39.8.0
38.8.6
If there are any questions or comments about this advisory, send an email to security@electronjs.org
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.005 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.004 | 0.003 | v2026.06.15 |
| 2026-11-30 | 0.005 | 0.004 | v2026.06.15 |