Electron: Context Isolation bypass via contextBridge VideoFrame transfer
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From versions 39.0.0-alpha.1 to before 39.8.0, 40.0.0-alpha.1 to before 40.7.0, and 41.0.0-alpha.1 to before 41.0.0-beta.8, apps that pass VideoFrame objects (from the WebCodecs API) across the contextBridge are vulnerable to a context isolation bypass. An attacker who can execute JavaScript in the main world (for example, via XSS) can use a bridged VideoFrame to gain access to the isolated world, including any Node.js APIs exposed to the preload script. Apps are only affected if a preload script returns, resolves, or passes a VideoFrame object to the main world via contextBridge.exposeInMainWorld(). Apps that do not bridge VideoFrame objects are not affected. This issue has been patched in versions 39.8.0, 40.7.0, and 41.0.0-beta.8.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| electron | electron | 39.0.0-alpha.1 to before 39.8.0; 40.0.0-alpha.1 to before 40.7.0; 41.0.0-alpha.1 to before 41.0.0-beta.8 | 39.8.0, 40.7.0, 41.0.0-beta.8 | Patch available | CNA |
| — | electron (npm) | 39.0.0-alpha.1 to before 39.8.0 | 39.8.0 | Patch available | GHSA-jfqg-hf23-qpw2 |
| — | electron (npm) | 40.0.0-alpha.1 to before 40.7.0 | 40.7.0 | Patch available | GHSA-jfqg-hf23-qpw2 |
| — | electron (npm) | 41.0.0-alpha.1 to before 41.0.0-beta.8 | 41.0.0-beta.8 | Patch available | GHSA-jfqg-hf23-qpw2 |
- electron Vendorelectron Affected 39.0.0-alpha.1 to before 39.8.0; 40.0.0-alpha.1 to before 40.7.0; 41.0.0-alpha.1 to before 41.0.0-beta.8 Fixed in 39.8.0, 40.7.0, 41.0.0-beta.8 Patch available CNA
- electron (npm) Vendor— Affected 39.0.0-alpha.1 to before 39.8.0 Fixed in 39.8.0 Patch available GHSA-jfqg-hf23-qpw2
- electron (npm) Vendor— Affected 40.0.0-alpha.1 to before 40.7.0 Fixed in 40.7.0 Patch available GHSA-jfqg-hf23-qpw2
- electron (npm) Vendor— Affected 41.0.0-alpha.1 to before 41.0.0-beta.8 Fixed in 41.0.0-beta.8 Patch available GHSA-jfqg-hf23-qpw2
CPE configurations NVD · 14
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* | 39.0.0 to before 39.8.0; 40.0.0 to before 40.7.0 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:alpha1:*:*:*:node.js:*:* | 41.0.0 alpha1 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:alpha2:*:*:*:node.js:*:* | 41.0.0 alpha2 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:alpha3:*:*:*:node.js:*:* | 41.0.0 alpha3 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:alpha4:*:*:*:node.js:*:* | 41.0.0 alpha4 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:alpha5:*:*:*:node.js:*:* | 41.0.0 alpha5 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:alpha6:*:*:*:node.js:*:* | 41.0.0 alpha6 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:beta1:*:*:*:node.js:*:* | 41.0.0 beta1 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:beta2:*:*:*:node.js:*:* | 41.0.0 beta2 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:beta3:*:*:*:node.js:*:* | 41.0.0 beta3 | Vulnerable | Electronjs |
- cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* Versions 39.0.0 to before 39.8.0; 40.0.0 to before 40.7.0 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:alpha1:*:*:*:node.js:*:* Versions 41.0.0 alpha1 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:alpha2:*:*:*:node.js:*:* Versions 41.0.0 alpha2 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:alpha3:*:*:*:node.js:*:* Versions 41.0.0 alpha3 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:alpha4:*:*:*:node.js:*:* Versions 41.0.0 alpha4 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:alpha5:*:*:*:node.js:*:* Versions 41.0.0 alpha5 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:alpha6:*:*:*:node.js:*:* Versions 41.0.0 alpha6 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:beta1:*:*:*:node.js:*:* Versions 41.0.0 beta1 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:beta2:*:*:*:node.js:*:* Versions 41.0.0 beta2 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:beta3:*:*:*:node.js:*:* Versions 41.0.0 beta3 Vulnerable ·Electronjs
Show 4 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:electronjs:electron:41.0.0:beta4:*:*:*:node.js:*:* | 41.0.0 beta4 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:beta5:*:*:*:node.js:*:* | 41.0.0 beta5 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:beta6:*:*:*:node.js:*:* | 41.0.0 beta6 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:41.0.0:beta7:*:*:*:node.js:*:* | 41.0.0 beta7 | Vulnerable | Electronjs |
- cpe:2.3:a:electronjs:electron:41.0.0:beta4:*:*:*:node.js:*:* Versions 41.0.0 beta4 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:beta5:*:*:*:node.js:*:* Versions 41.0.0 beta5 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:beta6:*:*:*:node.js:*:* Versions 41.0.0 beta6 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:41.0.0:beta7:*:*:*:node.js:*:* Versions 41.0.0 beta7 Vulnerable ·Electronjs
Remediation
- Fix · CNA electron (electron) Fixed in 39.8.0, 40.7.0, 41.0.0-beta.8
- Fix · GHSA-jfqg-hf23-qpw2 electron (npm) Fixed in 39.8.0 Advisory →
- Fix · GHSA-jfqg-hf23-qpw2 electron (npm) Fixed in 40.7.0 Advisory →
- Fix · GHSA-jfqg-hf23-qpw2 electron (npm) Fixed in 41.0.0-beta.8 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Podman Desktop | Affected | No fix yet |
| Red Hat Build of Podman Desktop - Tech Preview | Affected | No fix yet |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-34780
- 2026-10-03 Alias added: GHSA-jfqg-hf23-qpw2
References
More electron vulnerabilities
- TI-2026-39496 Information disclosure in electron-builder CVSS 4.0HIGH 8.2
- TI-2024-26621 Code Signing Bypass on Windows in electron-updater < 6.3.0-alpha.6 CVSS 3.1HIGH 7.5
- TI-2023-09452 Content-Secrity-Policy disabling eval not applied consistently in renderers with sandbox disabled in Electron CVSS 3.1CRITICAL 9.8
- TI-2026-39157 Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow CVSS 4.0CRITICAL 9.3
- TI-2017-09308 GitHub Electron before 1.6.8 allows remote command execution because of a nodeIntegration… CVSS 3.0HIGH 8.1
- TI-2022-11788 Exposure of Resource to Wrong Sphere in Electron CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-34780 · CVE Program
- CVE-2026-34780 · NVD
- FIRST EPSS
- GHSA-jfqg-hf23-qpw2 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-34780 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences