Node.js CVE-2026-34780
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject XSS payload into vulnerable Electron app
-
DeliveryExploit bridged VideoFrame via contextBridge
-
ExploitBypass context isolation
-
ExecutionAccess Node.js APIs in preload script
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
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.840.7.039.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
Related Vulnerabilities in Electron Security Vulnerabilities
View all 11Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
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
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
GHSA-jfqg-hf23-qpw2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB