JLSEC-2026-1811: 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, serial-port and media permission checks made from an iframe passed the top-level frame origin to session.setPermissionCheckHandler instead of the requesting iframe origin. Origin-based handler logic could grant a cross-origin iframe device access intended only for the top-level origin. 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 applications are exposed to this issue?
Applications are exposed if they use Electron's session.setPermissionCheckHandler with origin-based permission logic and allow cross-origin iframes that request serial-port or media permissions. The affected behavior can cause the handler to evaluate the top-level frame's origin rather than the iframe's requesting origin.
What must an attacker do to exploit this?
An attacker needs a cross-origin iframe in the application context to request serial-port or media access. Exploitation depends on the application's permission handler granting access based on the top-level origin, thereby extending permission intended for that origin to the iframe.
How can this be mitigated before upgrading?
Review permission handling for serial-port and media requests, especially any session.setPermissionCheckHandler logic that allows permissions solely by origin. Avoid allowing cross-origin iframes to obtain these device permissions until the Electron version is updated.
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.