Skip to main content

Node.js CVE-2026-34780

MEDIUM
Exposure of Resource to Wrong Sphere (CWE-668)
2026-04-03 https://github.com/electron/electron GHSA-jfqg-hf23-qpw2
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Inject XSS payload into vulnerable Electron app
  2. Delivery
    Exploit bridged VideoFrame via contextBridge
  3. Exploit
    Bypass context isolation
  4. Execution
    Access Node.js APIs in preload script
  5. Impact
    Execute arbitrary code with elevated privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Resource sphere isolation
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Electron applications using contextBridge to expose VideoFrame objects from WebCodecs API to the main world. Attacker requires ability to execute JavaScript in main world (e.g., via XSS). Victim must trigger XSS payload. Only affects apps that bridge VideoFrame objects; default configurations unaffected.

Impact

Real-world risk is moderate-to-high with important caveats. The CVSS 8.4 score reflects severe potential impact (confidentiality, integrity, and availability all High with scope change), but attack complexity is High (AC:H) requiring specific preconditions: the application must bridge VideoFrame objects via contextBridge AND the attacker must achieve XSS in the main world. The UI:R (user interaction required) and PR:N (no privileges) indicate a realistic browser-based attack chain. EPSS data not provided, but GitHub Security Advisory publication increases attacker awareness. No confirmed active exploitation (not in CISA KEV) and no public exploit identified at time of analysis, though the detailed vendor advisory provides sufficient information for exploit development. SSVC factors suggest medium priority: exploitation requires both application-specific configuration (VideoFrame bridging) and initial XSS foothold, making it non-automatable. Technical impact is high for affected applications as it defeats Electron's primary security boundary. Organizations using Electron apps that manipulate video content should prioritize this, while those not bridging VideoFrame objects face zero risk despite the high CVSS.

Exploit ScenarioDerived

An attacker identifies an Electron-based video processing application that bridges VideoFrame objects to enable custom video manipulation features. The attacker discovers an XSS vulnerability in the application's web content (via insufficient input sanitization in a file name display or chat feature). Leveraging the XSS, the attacker injects JavaScript that intercepts a bridged VideoFrame object, uses its internal references to traverse into the isolated preload context, and accesses Node.js APIs like require('child_process') to execute arbitrary system commands. The attacker achieves full local code execution with the privileges of the application user, potentially accessing filesystem, credentials, or establishing persistence. The high attack complexity stems from requiring both the XSS vector and VideoFrame bridging, but impact is critical once both conditions are met.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 03, 2026

Context isolation bypass in Electron applications enables privilege escalation when VideoFrame objects are bridged to the main world. Attackers with XSS capabilities can leverage improperly bridged WebCodecs API VideoFrame objects to escape the isolated context and access Node.js APIs exposed in preload scripts. CVSS 8.4 (High) with network attack vector requiring high complexity and user interaction. No public exploit identified at time of analysis, though proof-of-concept development is feasible given the detailed vendor disclosure.

RemediationAI

Vendor-released patches are available: upgrade to Electron 41.0.0-beta.8 or later for version 41.x applications, upgrade to 40.7.0 or later for version 40.x applications, or upgrade to 39.8.0 or later for version 39.x applications. The patches fix the improper object handling when VideoFrame objects cross the context isolation boundary. For applications unable to upgrade immediately, implement the recommended workaround by avoiding direct bridging of VideoFrame objects across contextBridge; instead, serialize video frame data to ArrayBuffer or ImageBitmap formats before passing to the main world, which eliminates the capability leak. Review preload scripts and contextBridge.exposeInMainWorld() implementations to identify any VideoFrame bridging patterns. Complete remediation guidance and patched versions are documented in the GitHub Security Advisory at https://github.com/electron/electron/security/advisories/GHSA-jfqg-hf23-qpw2. Contact security@electronjs.org for implementation questions.

Affected Packages

npm electron fix: 39.8.0, 40.7.0, 41.0.0-beta.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Electron's contextBridge API is designed to safely expose limited APIs from the isolated preload script context to the untrusted main world renderer context. This vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affects Electron's handling of VideoFrame objects from the WebCodecs API when passed through contextBridge.exposeInMainWorld(). The VideoFrame object contains internal references that, when improperly sanitized during context bridging, create a capability leak allowing main world JavaScript to traverse back into the isolated context. The WebCodecs API provides low-level access to video encoders/decoders, and VideoFrame represents raw video frame data with associated metadata. The vulnerability specifically affects the npm package 'electron' across versions prior to the patched releases, exploiting the object serialization boundary between Node.js-enabled isolated contexts and the browser-like main world.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Red Hat 8.0 HIGH

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
Severity Changed
Jun 30, 2026 - 03:24 NVD
HIGH MEDIUM
CVSS changed
Jun 30, 2026 - 03:24 NVD
8.3 (HIGH) 6.1 (MEDIUM)
Patch released
Apr 03, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 03, 2026 - 02:46 nvd
HIGH 8.3

DescriptionNVD

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)

Executive ViewAI

Why It Matters

CVE-2026-34780 is a context isolation bypass in Electron applications that allows attackers with cross-site scripting (XSS) capabilities to escalate privileges and access Node.js APIs through improperly bridged WebCodecs VideoFrame objects. Organizations deploying Electron-based applications are at risk of unauthorized access to sensitive functionality if their applications use the affected API pattern. This vulnerability requires no patch availability and demands immediate architectural review of affected applications.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce strict Content Security Policy to prevent XSS injection; (2) Remove or restrict Node.js API exposure in preload scripts to only essential functions with principle of least privilege; (3) Avoid bridging WebCodecs VideoFrame objects to main world context-keep VideoFrame objects isolated to renderer process only; (4) Implement input validation and sanitization for all user-supplied data; (5) Apply security updates to Electron as they become available; (6) Consider disabling WebCodecs API if not required for application functionality.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

pkg:npm/electron
pkg:npm/electron
pkg:npm/electron
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy