JLSEC-2026-1820: Medium severity julia/electron_jll vulnerability
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1, the mode option of webContents.openDevTools() was not sanitized before use by the DevTools frontend. If an attacker can influence this value, script under their control may run in the DevTools context, which in unsandboxed configurations has access to Node.js, including when untrusted input reaches the mode argument of openDevTools() or untrusted content calls openDevTools() on a webview it embeds. This issue is fixed in 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 39.8.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 40.9.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 41.2.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 42.0.0-beta.1
Event History
Frequently Asked Questions
Which application configurations are most exposed?
Exposure is most relevant to unsandboxed Electron configurations, because script executing in the DevTools context can access Node.js there. Risk exists when untrusted input can reach the mode argument or when untrusted content can invoke openDevTools() on an embedded webview.
What must an attacker be able to do?
The attacker must be able to influence the mode value passed to webContents.openDevTools(), or cause untrusted content in an embedded webview to call openDevTools(). The published vector also indicates high privileges and user interaction are required.
How can we determine whether an application needs remediation?
Review uses of webContents.openDevTools() and identify whether its mode argument can be influenced by untrusted input. Also review embedded webviews to determine whether untrusted content can call openDevTools(), particularly in unsandboxed configurations.
Which versions contain the fix?
The issue is fixed in Electron 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1. Install a fixed release in the applicable release line.