Loading advisory.
Loading advisory.
Electron: Context isolation bypass via Function.prototype.bind hijack
Apps that expose Promise-returning functions to web content via contextBridge may be vulnerable to a context isolation bypass. Untrusted web content could obtain access to the isolated preload world and, through it, every capability the preload script has.
Published 2026-08-05 15:45 UTC · Modified 2026-08-05 17:30 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.5 | 39.8.9, 40.9.2, 41.2.2, 42.0.0-beta.5 | npm install electron@39.8.9npm install electron@40.9.2npm install electron@41.2.2npm install electron@42.0.0-beta.5 |
Apps that expose Promise-returning functions to web content via contextBridge may be vulnerable to a context isolation bypass. Untrusted web content could obtain access to the isolated preload world and, through it, every capability the preload script has. In renderers without a sandbox, or with nodeIntegration enabled, this may escalate to Node.js access.
Apps are affected if they expose Promise-returning functions via contextBridge — the standard pattern for wrapping ipcRenderer.invoke — in windows that load untrusted content. Apps that never load untrusted content in those windows are not affected.
There are no app side workarounds, you must update to a patched version of Electron.
42.0.0-beta.5
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.003 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |