JLSEC-2026-1793: High severity julia/electron_jll vulnerability
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5, when a renderer calls window.open() with a target name, Electron did not correctly scope the named-window lookup to the opener's browsing context group. A renderer could navigate an existing child window that was opened by a different, unrelated renderer if both used the same target name. If that existing child was created with more permissive webPreferences (via setWindowOpenHandler's overrideBrowserWindowOptions), content loaded by the second renderer inherits those permissions. Apps are only affected if they open multiple top-level windows with differing trust levels and use setWindowOpenHandler to grant child windows elevated webPreferences such as a privileged preload script. Apps that do not elevate child window privileges, or that use a single top-level window, are not affected. Apps that additionally grant nodeIntegration: true or sandbox: false to child windows (contrary to the security recommendations) may be exposed to arbitrary code execution. This vulnerability is fixed in 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5.
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.5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 40.8.5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 41.1.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 42.0.0-alpha.5
Event History
Frequently Asked Questions
Which applications are actually affected?
Affected applications open multiple top-level windows with different trust levels and use setWindowOpenHandler to give child windows elevated webPreferences, such as a privileged preload script. Applications using only one top-level window or not elevating child-window privileges are not affected.
What does an attacker need to exploit this?
A renderer must be able to call window.open() with a target name matching a child window created by an unrelated renderer. The targeted child must have been created with more permissive webPreferences, allowing attacker-controlled content navigated into it to inherit those permissions.
When can this become arbitrary code execution?
Arbitrary code execution may be possible when affected child windows are additionally configured with nodeIntegration: true or sandbox: false. The data identifies both settings as contrary to the security recommendations.
What versions contain the fix?
The issue is fixed in Electron 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5.
What can be done if updating is not immediately possible?
Avoid granting elevated webPreferences to child windows through setWindowOpenHandler, particularly privileged preload scripts. Also avoid child-window configurations with nodeIntegration: true or sandbox: false, and avoid mixing multiple top-level windows with different trust levels where possible.