{"id":"CVE-2026-34780","published":"2026-04-04T00:02:02Z","modified":"2026-07-15T01:03:46Z","title":"Electron: Context Isolation bypass via contextBridge VideoFrame transfer","vendor":"electron","product":"electron","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0034,"percentile":0.28018,"provenance":"source"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"},{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"},{"id":"CWE-501","name":"Trust Boundary Violation"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-jfqg-hf23-qpw2","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34780","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2455020","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34780.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":5.6},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":[">= 39.0.0-alpha.1, < 39.8.0",">= 40.0.0-alpha.1, < 40.7.0",">= 41.0.0-alpha.1, < 41.0.0-beta.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-07T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":[">=39.0.0-alpha.1, <39.8.0",">=40.0.0-alpha.1, <40.7.0",">=41.0.0-alpha.1, <41.0.0-beta.8"],"patched":["39.8.0","40.7.0","41.0.0-beta.8"],"from":["GHSA-jfqg-hf23-qpw2"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-18961","exploited":false,"provenance":"source"}}