Security Resilience

CVE-2026-34780

Electronjs Electron 39.0.0 – 39.8.0

Published
04 April 2026
Modified
24 July 2026
Patch / advisory
CVSS Score v3.1 8.3
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS Score 0.0047 33th percentile
Risk Priority 59 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-34780 is a high-severity Exposure of Resource to Wrong Sphere (CWE-668) vulnerability in Electronjs Electron. Its CVSS base score is 8.3 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Default Accounts (T1078.001); ranked at the 33th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-4 (Information Flow Enforcement) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Electron, a framework for developing cross-platform desktop applications using JavaScript, HTML, and CSS, is affected by CVE-2026-34780, a context isolation bypass vulnerability. This flaw impacts versions 39.0.0-alpha.1 through 39.7.999 (before 39.8.0), 40.0.0-alpha.1 through 40.6.999 (before 40.7.0), and 41.0.0-alpha.1 through 41.0.0-beta.7 (before 41.0.0-beta.8). It arises when applications pass VideoFrame objects from the WebCodecs API across the contextBridge, enabling unauthorized access between isolated renderer contexts and the main process.

An attacker who can execute arbitrary JavaScript in the main world—for instance, via cross-site scripting (XSS)—can leverage a bridged VideoFrame object to breach context isolation and access the isolated world. This grants privileges to any Node.js APIs exposed by the preload script. Exploitation requires the target application to explicitly return, resolve, or pass VideoFrame objects to the main world via contextBridge.exposeInMainWorld(); applications that do not bridge these objects are unaffected. The vulnerability carries a CVSS v3.1 base score of 8.3 (AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H) and is associated with CWEs 668 (Exposure of Resource to Wrong Sphere) and 1188 (Insecure Default Initialization of Resource).

The official Electron security advisory (GHSA-jfqg-hf23-qpw2) at https://github.com/electron/electron/security/advisories/GHSA-jfqg-hf23-qpw2 confirms the issue and states that it has been addressed in Electron versions 39.8.0, 40.7.0, and 41.0.0-beta.8. Practitioners should verify and upgrade affected Electron-based applications to these patched releases or later to eliminate the bypass risk.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1078.001 Default Accounts Stealth
Adversaries may obtain and abuse credentials of a default account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1530 Data from Cloud Storage Collection
Adversaries may access data from cloud storage.
T1548.002 Bypass User Account Control Privilege Escalation
Adversaries may bypass UAC mechanisms to elevate process privileges on system.
T1564.012 File/Path Exclusions Stealth
Adversaries may attempt to hide their file-based artifacts by writing them to specific folders or file names excluded from antivirus (AV) scanning and other defensive capabilities.
T1685.007 Impair Autonomous Defenses Defense Impairment
Adversaries may use methods like [Indirect Prompt Injection](https://attack.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-102676Same product: Electronjs Electron
CVE-2026-34765Same product: Electronjs Electron
CVE-2023-39956Same product: Electronjs Electron
CVE-2026-34779Same product: Electronjs Electron
CVE-2026-34774Same product: Electronjs Electron
CVE-2026-34776Same product: Electronjs Electron
CVE-2026-102674Same product: Electronjs Electron
CVE-2026-34781Same product: Electronjs Electron
CVE-2026-34772Same product: Electronjs Electron
CVE-2026-34770Same product: Electronjs Electron

Affected Assets

electronjs
electron
41.0.0 · 39.0.0 — 39.8.0 · 40.0.0 — 40.7.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 11 hardening rules · 6 OS baselines
Validate
Prove the fix (OWASP ASVS)
  • V14.3.2
  • V6.3.2
  • V11.3.1
  • V13.2.3

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Access enforcement directly stops resources from being reachable by actors outside the intended control sphere.

Information flow enforcement structurally prevents unintended cross-sphere data or resource exposure.

Least privilege reduces the set of actors that can reach a resource, limiting wrong-sphere exposure.

Baseline configuration directly requires documenting and maintaining secure initial settings instead of insecure defaults.

Configuration settings mandate the most restrictive values be applied at initialization, eliminating reliance on insecure factory defaults.

Security attributes enable correct sphere assignment and subsequent enforcement decisions.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-01 full match
blocks

Hardened baselines and configuration management directly replace insecure defaults with secure settings.

PR.PS-06 mostly match
blocks

Secure development practices include designing products with secure defaults rather than insecure ones.

ID.AM-03 partial match
blocks

Documented data-flow representations make trust boundaries explicit and help surface mixing of trusted/untrusted data.

ID.RA-09 partial match
blocks

Pre-acquisition integrity checks can reject products known to ship with insecure defaults.

PR.IR-01 partial match
blocks

Logical segmentation and access controls enforce separation between trust domains, reducing the chance of co-mingled data structures.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

A.8.29's combined programme (code review, static analysis, vulnerability scanning, penetration testing) reaches insecure defaults through both SOURCE (hardcoded defaults in first-party code) and RUNTIME (default configurations observable in deployed systems), and the clause explicitly names secure configuration testing; the remainder is defaults whose insecurity depends on threat context the tester cannot infer, and defaults buried in third-party components that acceptance testing inspects from outside only.

blocks

Mandating secure baseline templates and immediate replacement of vendor defaults directly stops systems from being deployed with insecure factory settings that attackers can exploit.

removes

A.5.17 mandates changing default authentication information, removing that subset of CWE-1188 instances, but does not address insecure defaults unrelated to authentication.

prevents

Training raises developer awareness about choosing secure defaults, but the weakness is a code-level implementation choice often driven by ease-of-use assumptions, and training is fallible — it moves a minority of instances, consistent with the A.6.3 vs CWE-598 anchor and the A.8.28 vs CWE-79 reading that practice-based controls reach only a slice.

blocks

A.8.20's network restrictions, firewalls, and disabled protocols can block remote exploitation of insecure defaults that are network-reachable, but the insecure resource still remains exploitable by local users, insiders, or application-level defaults that network controls do not govern.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.

Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.

Oracle Linux 8 (1 partial rule)
  • V-248823 OL 8 must not have the telnet-server package installed. blocks CWE-1188
RHEL 7 (1 rule)
  • V-204627 SNMP community strings on the Red Hat Enterprise Linux operating system must be changed from the default. blocks CWE-1188
Ubuntu 22.04 (1 rule)
  • V-260529 Ubuntu 22.04 LTS must be configured so that remote X connections are disabled, unless to fulfill documented and validated mission requirements. blocks CWE-1188
Ubuntu 24.04 (1 rule)
  • V-270708 Ubuntu 24.04 LTS must be configured so that remote X connections are disabled, unless to fulfill documented and validated mission requirements. blocks CWE-1188
Windows Server 2016 (1 partial rule)
  • V-224972 Active Directory Group Policy objects must have proper access control permissions. blocks CWE-1188
Windows Server 2019 (1 rule)
  • V-205741 Windows Server 2019 Active Directory Group Policy objects must have proper access control permissions. blocks CWE-1188

References