JLSEC-2026-1805: Medium severity julia/electron_jll vulnerability
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 38.8.6, 39.8.1, 40.8.1, and 41.0.0, when an iframe requests fullscreen, pointerLock, keyboardLock, openExternal, or media permissions, the origin passed to session.setPermissionRequestHandler() was the top-level page's origin rather than the requesting iframe's origin. Apps that grant permissions based on the origin parameter or webContents.getURL() may inadvertently grant permissions to embedded third-party content. The correct requesting URL remains available via details.requestingUrl. Apps that already check details.requestingUrl are not affected. This issue has been patched in versions 38.8.6, 39.8.1, 40.8.1, and 41.0.0.
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 38.8.6 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 39.8.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 40.8.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 41.0.0
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications are exposed if they use Electron versions before 38.8.6, 39.8.1, 40.8.1, or 41.0.0 and grant iframe permission requests based on the origin parameter supplied to session.setPermissionRequestHandler() or on webContents.getURL(). Applications that check details.requestingUrl are not affected.
What does an attacker need to exploit this behavior?
An attacker needs embedded third-party iframe content to request fullscreen, pointer lock, keyboard lock, openExternal, or media permissions. If the application trusts the reported top-level origin when making its permission decision, the iframe may receive permissions intended only for that top-level origin.
How can we mitigate the issue before upgrading?
Base permission decisions on details.requestingUrl rather than the origin parameter or webContents.getURL(). This preserves the actual URL of the iframe making the request.
How can we determine whether our permission handler is vulnerable?
Review uses of session.setPermissionRequestHandler() for permission decisions that rely on its origin parameter or webContents.getURL(). If the handler validates details.requestingUrl for the requester, it is not affected.