CVE-2026-34780: electron Exposure of Resource to Wrong Sphere
Vulnerability summary
CVE-2026-34780 is a high (CVSS 8.4) Exposure of Resource to Wrong Sphere vulnerability in electron. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 37.7% of scored vulnerabilities.
Timeline
- 04-04-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
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 metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated8.3HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:HDiffers
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.45%
Chance of exploitation in the next 30 days
Percentile
38%
Versus all other CVEs
30-day change
+0.12 pp
From 0.33% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-668Exposure of Resource to Wrong SphereThe product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.
- CWE-1188Initialization of a Resource with an Insecure DefaultThe product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.
- CWE-501Trust Boundary ViolationThe product mixes trusted and untrusted data in the same data structure or structured message.
Affected systems
Electron1 product
- electron≥ 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
Electronjs1 product
- electronEOL≥ 39.0.0, < 39.8.0 | ≥ 40.0.0, < 40.7.0 | 41.0.0:alpha1 | 41.0.0:alpha2 | 41.0.0:alpha3 | 41.0.0:alpha4 | 41.0.0:alpha5 | 41.0.0:alpha6 | 41.0.0:beta1 | 41.0.0:beta2 | 41.0.0:beta3 | 41.0.0:beta4 | 41.0.0:beta5 | 41.0.0:beta6 | 41.0.0:beta7
Npm1 product
- electron≥ 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
3 vendors · 3 products
References
6 links- github.com/electron/electron/security/advisories/GHSA-jfqg-hf23-qpw2X Refsource CONFIRMWEBVendor Advisory
- github.com/electron/electronPACKAGE