Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electron
  4. ›
  5. CVE-2026-34780

CVE-2026-34780: Electron: Context Isolation bypass via contextBridge VideoFrame transfer

April 3, 2026 (updated April 6, 2026)

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.

References

  • github.com/advisories/GHSA-jfqg-hf23-qpw2
  • github.com/electron/electron
  • github.com/electron/electron/security/advisories/GHSA-jfqg-hf23-qpw2
  • nvd.nist.gov/vuln/detail/CVE-2026-34780

Code Behaviors & Features

Detect and mitigate CVE-2026-34780 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 39.0.0-alpha.1 before 39.8.0, all versions starting from 40.0.0-alpha.1 before 40.7.0, all versions starting from 41.0.0-alpha.1 before 41.0.0-beta.8

Fixed versions

  • 39.8.0
  • 40.7.0
  • 41.0.0-beta.8

Solution

Upgrade to versions 39.8.0, 40.7.0, 41.0.0-beta.8 or above.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1188: Initialization of a Resource with an Insecure Default
  • CWE-668: Exposure of Resource to Wrong Sphere

Source file

npm/electron/CVE-2026-34780.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:23 +0000.