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
Share

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
qualitative

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

5
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
Analysis Generated
Apr 03, 2026 - 03:00 vuln.today
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)

AnalysisAI

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.

Technical ContextAI

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.

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.

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-2013-4660 MEDIUM POC
6.8 Jun 28

The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic

CVE-2016-2107 MEDIUM POC
5.9 May 05

The AES-NI implementation in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h does not consider memory allocation during a

Vendor StatusVendor

Share

CVE-2026-34780 vulnerability details – vuln.today

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