Loading advisory.
Loading advisory.
Electron: contextBridge object copy honors prototype setters
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.
Published 2026-08-05 17:41 UTC · Modified 2026-08-06 14:31 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| electron | npm | < 39.8.9 >= 40.0.0-alpha.1, < 40.9.2 >= 41.0.0-alpha.1, < 41.2.2 >= 42.0.0-alpha.1, < 42.0.0-beta.4 | 39.8.9, 40.9.2, 41.2.2, 42.0.0-beta.4 | npm install electron@39.8.9npm install electron@40.9.2npm install electron@41.2.2npm install electron@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. Apps that only accept primitive arguments, or that validate object arguments, are not affected.
Validate objects received from untrusted content with own-property checks (Object.hasOwn), or copy them onto a null-prototype object before use.
42.0.0-beta.4
41.2.2
40.9.2
39.8.9
If you have any questions or comments about this advisory, email Electron at security@electronjs.org
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.006 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |