
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-34780 is a context isolation bypass vulnerability in the Electron framework, titled "Context Isolation bypass via contextBridge VideoFrame transfer." It affects applications built with Electron that pass VideoFrame objects (from the WebCodecs API) across the contextBridge to the main world. Affected versions include Electron 39.0.0-alpha.1 through 39.7.x, 40.0.0-alpha.1 through 40.6.x, and 41.0.0-alpha.1 through 41.0.0-beta.7. The vulnerability was published on April 2, 2026, and carries a CVSS v3.1 base score of 8.3 (High) per the official GitHub Security Advisory (GitHub Advisory, Electron Advisory).
The root cause is classified under CWE-668 (Exposure of Resource to Wrong Sphere) and CWE-1188 (Insecure Default Initialization of Resource). Electron's contextBridge is designed to safely expose APIs from the privileged isolated world (preload script) to the untrusted main world (renderer), but it fails to properly handle VideoFrame objects from the WebCodecs API when they are passed across this boundary. An attacker who can execute JavaScript in the main world — for example, through an XSS vulnerability in the application — can leverage a bridged VideoFrame object to escape the isolation boundary and gain access to the isolated world's context, including any Node.js APIs exposed via contextBridge.exposeInMainWorld(). Exploitation requires that the application's preload script explicitly returns, resolves, or passes a VideoFrame object to the main world; apps that do not bridge VideoFrame objects are not affected (GitHub Advisory, Electron Advisory).
Successful exploitation results in a complete bypass of Electron's context isolation security mechanism, granting an attacker access to Node.js APIs and functionality that should be restricted to the isolated preload script context. This can lead to arbitrary code execution within the Electron application process, unauthorized access to sensitive data, modification of application behavior, and full compromise of the application's confidentiality and integrity. The scope change (S:C) in the CVSS score reflects that the impact extends beyond the renderer process into the privileged preload context, with high confidentiality, integrity, and availability impact (GitHub Advisory, Electron Advisory).
As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The EPSS score is approximately 0.039% (0.000390), placing it in a low probability tier for near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires an attacker to first achieve JavaScript execution in the main world (e.g., via XSS) and the target application must bridge VideoFrame objects, limiting the attack surface to a subset of Electron applications (GitHub Advisory).
VideoFrame objects to the main world via contextBridge.exposeInMainWorld().VideoFrame object that has been exposed to the main world through the contextBridge.VideoFrame object to traverse the context isolation boundary, gaining access to the isolated world's JavaScript context and any Node.js APIs exposed by the preload script.fs, child_process, net) to execute arbitrary code, read sensitive files, establish persistence, or perform lateral movement within the host system (GitHub Advisory, Electron Advisory).fs.readFile, child_process.exec) originating from renderer process context in application logs; JavaScript errors or stack traces related to cross-context object access in Electron debug logs.cmd.exe, /bin/sh, powershell.exe); unexpected network connections initiated by the Electron application process.Electron has released patched versions that address this vulnerability: 39.8.0, 40.7.0, and 41.0.0-beta.8. Application developers should upgrade to one of these versions as the primary remediation. As an immediate workaround for applications that cannot upgrade right away, developers should refactor their code to avoid passing VideoFrame objects across contextBridge — instead, serialize video frame data to an ArrayBuffer or ImageBitmap before bridging. Additionally, implementing defense-in-depth measures such as a strict Content Security Policy (CSP), input validation, and output encoding can reduce the risk of the prerequisite XSS condition being met (GitHub Advisory, Electron Advisory).
The advisory was published by Electron maintainer VerteDinde on April 2, 2026, and reviewed by the GitHub Advisory Database on April 3, 2026. A technical write-up was published by Infinit Security shortly after disclosure, and the vulnerability was noted on Bluesky by CVE tracking accounts. No major media coverage or significant threat actor commentary has been identified at this time (Feedly).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."