{"cve":"CVE-2026-34780","nvd":{"published":"2026-04-04T01:16:39.540","modified":"2026-07-24T22:10:00.140","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-668","CWE-1188","CWE-501"],"references":["https://github.com/electron/electron/security/advisories/GHSA-jfqg-hf23-qpw2","https://access.redhat.com/security/cve/CVE-2026-34780","https://bugzilla.redhat.com/show_bug.cgi?id=2455020","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34780.json"],"products":["electronjs:electron"],"source":"nvd","synced_at":"2026-10-19T22:28:59.047572785+00:00"},"epss":{"cve":"CVE-2026-34780","score":0.00327,"percentile":0.25818,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-jfqg-hf23-qpw2","url":"https://osv.dev/vulnerability/GHSA-jfqg-hf23-qpw2","summary":"Electron: Context Isolation bypass via contextBridge VideoFrame transfer","modified":"2026-04-06T23:19:49.063150Z","packages":[{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=39.0.0-alpha.1 <39.8.0"],"fixed":["39.8.0"]},{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=40.0.0-alpha.1 <40.7.0"],"fixed":["40.7.0"]},{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=41.0.0-alpha.1 <41.0.0-beta.8"],"fixed":["41.0.0-beta.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}