Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102677 Overview
CVE-2026-102677 affects Electron, the framework for building cross-platform desktop applications with JavaScript, HTML, and CSS. The vulnerability exists in Electron's sandboxed preload code cache. Electron did not verify that a cached entry matched the preload script it was served for. A compromised renderer process can write attacker-controlled data into the cache. Electron then reuses that data on a later load, executing renderer-supplied code inside the more privileged preload context. The flaw affects applications that load untrusted web content. Fixed builds are 42.10.0, 43.5.0, and 44.0.0-beta.6.
Critical Impact
A compromised renderer can escalate from the sandboxed web context into the preload context, gaining access to Node.js integration and privileged Electron APIs exposed to the preload.
Affected Products
- Electron versions 42.3.3 through 42.9.x
- Electron versions 43.0.0 through 43.4.x
- Electron 44.0.0-beta.1 through 44.0.0-beta.5
Discovery Timeline
- 2026-09-29 - CVE-2026-102677 published to NVD
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-102677
Vulnerability Analysis
Electron caches compiled preload script bytecode to accelerate window creation. The cache lookup relied on an insufficient key that did not bind an entry to the specific preload it was generated from. Under this weak keying, entries written from one browsing context could be served for a different preload load. This creates a confused-deputy condition where the cache serves attacker-influenced bytecode as trusted preload code.
Because preload scripts run with elevated privileges compared to sandboxed renderer content, code executed in that context can reach ipcRenderer, contextBridge, and any Node.js primitives the application exposes. The issue is classified under CWE-20: Improper Input Validation, reflecting the missing validation between cached content and the preload identity requesting it.
Root Cause
The root cause is missing verification that a preload code cache entry corresponds to the preload script being loaded. The fix keys sandboxed preload code cache entries by the consuming site, ensuring cache reuse only occurs when the requesting origin and preload identity match the stored entry. The patch is titled fix: key sandboxed preload code cache entries by consuming site.
Attack Vector
Exploitation requires an already-compromised renderer in an Electron application that loads untrusted content. The attacker uses the renderer to write crafted content to the preload code cache. On a subsequent load where Electron selects that entry, the attacker's payload executes inside the preload context, breaking the sandbox privilege boundary.
// Patch excerpt: removal of preload_code_cache.h include after refactoring
// cache keying logic to bind entries to the consuming site.
// shell/browser/electron_browser_client.cc
#include "shell/browser/network_hints_handler_impl.h"
#include "shell/browser/notifications/notification_presenter.h"
#include "shell/browser/notifications/platform_notification_service.h"
-#include "shell/browser/preload_code_cache.h"
#include "shell/browser/preload_script.h"
#include "shell/browser/protocol_registry.h"
#include "shell/browser/renderer_startup_data.h"
Source: Electron commit 000453e3
Detection Methods for CVE-2026-102677
Indicators of Compromise
- Unexpected write activity to the Electron application's user data directory, particularly under the preload code cache path.
- Preload scripts producing behavior not present in the shipped application build, such as spawning child processes or invoking require() on Node.js modules unexpectedly.
- Child process creation from an Electron helper process following interaction with untrusted web content.
Detection Strategies
- Inventory installed desktop applications and identify those built on Electron 42.3.3 through 42.9.x, 43.0.0 through 43.4.x, and pre-release 44.0.0 builds.
- Baseline the code cache directory contents per application and alert on modifications outside upgrade windows.
- Monitor for anomalous IPC or Node API usage originating from renderer helper processes in Electron applications that load remote content.
Monitoring Recommendations
- Log process creation events with parent-child relationships for Electron helper processes to surface post-exploitation activity.
- Track outbound network connections initiated by Electron applications that historically communicate only with a fixed set of endpoints.
- Correlate file writes to the preload code cache directory with subsequent application launches for the same executable.
How to Mitigate CVE-2026-102677
Immediate Actions Required
- Upgrade Electron to 42.10.0, 43.5.0, or 44.0.0-beta.6 and rebuild affected applications.
- Audit application code for use of loadURL or loadFile with untrusted or third-party content, and restrict where possible.
- Clear existing preload code caches after upgrading to invalidate any tampered entries written before patching.
Patch Information
The fix keys sandboxed preload code cache entries by consuming site and is available in Electron v42.10.0, v43.5.0, and v44.0.0-beta.6. See the GitHub Security Advisory GHSA-qmv3-fv6v-rmhq and Pull Request #52480 for the code changes.
Workarounds
- Avoid loading untrusted content in BrowserWindow or webContents instances until patched builds are deployed.
- Disable the preload code cache in affected builds where feasible to eliminate the reuse path exploited by this issue.
- Enforce contextIsolation: true and minimize the surface exposed through contextBridge to reduce impact if preload code is subverted.
# Update Electron dependency to a patched release
npm install --save-dev electron@42.10.0
# or
npm install --save-dev electron@43.5.0
# Rebuild and repackage the application
npm run build
npm run package
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

