Loading...
Skip to main content

CVE-2026-34780 — Vulnerability in electron — CVE Details

HIGH

Electron: Context Isolation bypass via contextBridge VideoFrame transfer

Published April 3, 2026Updated April 6, 2026Source: osv

Summary

### Impact 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. ### Workarounds Do not pass `VideoFrame` objects across `contextBridge`. If an app needs to transfer video frame data, serialize it to an `ArrayBuffer` or `ImageBitmap` before bridging. ### Fixed Versions * `41.0.0-beta.8` * `40.7.0` * `39.8.0` ### For more information If there are any questions or comments about this advisory, please email [security@electronjs.org](mailto:security@electronjs.org)

Advisory Timeline

  • First published April 3, 2026 (192 days ago).
  • Last revised April 6, 2026 — 4 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update electron to 40.7.0 or later
npm install electron@40.7.0
npm
Update electron to 39.8.0 or later
npm install electron@39.8.0
npm
Update electron to 41.0.0-beta.8 or later
npm install electron@41.0.0-beta.8

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
electron
npm
All versions40.7.0
electron
npm
All versions39.8.0
electron
npm
All versions41.0.0-beta.8

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2026-34780?
Electron: Context Isolation bypass via contextBridge VideoFrame transfer This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.3/10).
How do I check if my project is affected by CVE-2026-34780?
CVE-2026-34780 affects electron. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-34780 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.3

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-jfqg-hf23-qpw2

Related CVEs

  • CVE-2026-54257
    CRITICAL

    Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow

  • CVE-2026-102676
    HIGH

    Electron: <webview> can enable Node.js integration in Web Workers despite embedder restrictions

  • CVE-2026-102674
    HIGH

    Electron: Windows opened from a sandboxed top-level document do not inherit its sandbox restrictions

  • CVE-2026-102673
    HIGH

    Electron drops inherited HTML sandbox restrictions for popups opened through OpenURLFromTab

  • CVE-2023-4863
    HIGH

    libwebp: OOB write in BuildHuffmanTable

  • CVE-2026-107375
    HIGH

    JHipster: SQL Injection in the Parameter of JHipster-Generated Reactive (WebFlux + R2DBC) Applicationssort

  • CVE-2026-107384
    HIGH

    MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies