{"id":"CVE-2026-34780","aliases":["CVE-2026-34780","GHSA-jfqg-hf23-qpw2"],"related":[],"kind":"vulnerability","state":"published","title":"Electron: Context Isolation bypass via contextBridge VideoFrame transfer","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nApps 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.\n\nApps 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.\n\n### Workarounds\nDo not pass `VideoFrame` objects across `contextBridge`. If an app needs to transfer video frame data, serialize it to an `ArrayBuffer` or `ImageBitmap` before bridging.\n\n### Fixed Versions\n* `41.0.0-beta.8`\n* `40.7.0`\n* `39.8.0`\n\n### For more information\nIf there are any questions or comments about this advisory, please email [security@electronjs.org](mailto:security@electronjs.org)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Electron es un framework para escribir aplicaciones de escritorio multiplataforma usando JavaScript, HTML y CSS. Desde las versiones 39.0.0-alpha.1 hasta antes de la 39.8.0, 40.0.0-alpha.1 hasta antes de la 40.7.0, y 41.0.0-alpha.1 hasta antes de la 41.0.0-beta.8, las aplicaciones que pasan objetos VideoFrame (de la API WebCodecs) a través del contextBridge son vulnerables a una omisión del aislamiento de contexto. Un atacante que puede ejecutar JavaScript en el mundo principal (por ejemplo, a través de XSS) puede usar un VideoFrame puenteado para obtener acceso al mundo aislado, incluyendo cualquier API de Node.js expuesta al script de precarga. Las aplicaciones solo se ven afectadas si un script de precarga devuelve, resuelve o pasa un objeto VideoFrame al mundo principal a través de contextBridge.exposeInMainWorld(). Las aplicaciones que no puentean objetos VideoFrame no se ven afectadas. Este problema ha sido parcheado en las versiones 39.8.0, 40.7.0 y 41.0.0-beta.8.","source":"nvd"}],"published":"2026-04-03T02:46:56.000Z","modified":"2026-07-24T22:10:00.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-501","CWE-668","CWE-1188"],"affected":[{"ranges":[{"version":">= 39.0.0-alpha.1, < 39.8.0","status":"affected"},{"version":">= 40.0.0-alpha.1, < 40.7.0","status":"affected"},{"version":">= 41.0.0-alpha.1, < 41.0.0-beta.8","status":"affected"}],"vendor":"electron","product":"electron","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Build of Podman Desktop","package":"podman-desktop-macos-1-0","cpe":"cpe:/a:redhat:podman_desktop:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Build of Podman Desktop","package":"podman-desktop-windows-1-0","cpe":"cpe:/a:redhat:podman_desktop:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Build of Podman Desktop - Tech Preview","package":"rhdesktop/rh-podman-desktop-ext-openshift-local-rhel10","cpe":"cpe:/a:redhat:podman_desktop:0","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"39.0.0-alpha.1","status":"affected","fixed":"39.8.0"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"40.0.0-alpha.1","status":"affected","fixed":"40.7.0"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"41.0.0-alpha.1","status":"affected","fixed":"41.0.0-beta.8"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"39.0.0","fixed":"39.8.0"},{"status":"affected","introduced":"40.0.0","fixed":"40.7.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"}],"vendor":"electronjs","product":"electron","cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-jfqg-hf23-qpw2","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34780","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2455020","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34780.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34780","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-07T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34780","url":"https://www.cve.org/CVERecord?id=CVE-2026-34780","licence":"CVE Terms of Use","modified":"2026-07-15T01:03:46.178Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jfqg-hf23-qpw2","url":"https://github.com/advisories/GHSA-jfqg-hf23-qpw2","licence":"CC-BY-4.0","modified":"2026-04-06T23:19:49.063Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34780","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34780","licence":"Public domain","modified":"2026-07-24T22:10:00.140Z"}],"updatedAt":"2026-11-25T22:59:17.946Z","epss":{"score":0.0037,"percentile":0.32949,"date":"2026-12-01T12:00:22.000Z"}}