JLSEC-2026-1821: 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.9, 40.9.2, 41.2.2, and 42.0.0-beta.4, objects copied across the contextBridge boundary from untrusted content could carry an attacker-influenced prototype, enabling prototype-pollution-style attacks against preload code despite context isolation being enabled. Apps are only affected if their preload code accepts object arguments from untrusted content and reads properties from them without own-property checks, while apps that only accept primitive arguments or validate object arguments are not affected. This issue is fixed in 39.8.9, 40.9.2, 41.2.2, and 42.0.0-beta.4.
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.9 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 40.9.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 41.2.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 42.0.0-beta.4
Event History
Frequently Asked Questions
Which applications are actually exposed?
Only applications whose preload code accepts object arguments from untrusted content and reads properties from those objects without own-property checks are affected. Applications that accept only primitive arguments, or that validate object arguments, are not affected.
Does enabling context isolation prevent exploitation?
No. The issue can affect preload code despite context isolation being enabled, because objects copied through contextBridge may retain an attacker-influenced prototype.
What must an attacker be able to do?
An attacker needs to supply object arguments through the contextBridge boundary from untrusted content. Exploitation depends on the preload code subsequently reading properties from those objects without checking that the properties are own properties.
What should be done if the application cannot be updated immediately?
Review preload APIs exposed to untrusted content and avoid accepting object arguments where possible. For required objects, validate them and use own-property checks before reading their properties.
How can developers determine whether their preload code is affected?
Identify contextBridge-exposed functions that receive data from untrusted content. Those functions need review if they accept objects and access object properties without own-property checks.