CVE-2026-70600 Overview
CVE-2026-70600 affects Electron, a framework for building cross-platform desktop applications with JavaScript, HTML, and CSS. The native autofill popup can be positioned by a cross-origin iframe outside that iframe's bounds. This allows the popup to render over the embedding page's trusted user interface (UI), enabling clickjacking or UI spoofing attacks [CWE-1021]. Applications are only affected when they embed untrusted third-party content in iframes within windows that also render trusted UI elements. The issue is fixed in Electron versions 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3.
Critical Impact
Attackers controlling embedded iframe content can spoof trusted UI elements or hijack user clicks, potentially leading to unintended actions on the host application.
Affected Products
- Electron versions prior to 39.8.8
- Electron 40.x prior to 40.9.0
- Electron 41.x prior to 41.2.1 and 42.x prior to 42.0.0-beta.3
Discovery Timeline
- 2026-08-05 - CVE-2026-70600 published to the National Vulnerability Database (NVD)
- 2026-08-05 - Last updated in NVD database
Technical Details for CVE-2026-70600
Vulnerability Analysis
The vulnerability resides in Electron's native autofill popup rendering logic. When a cross-origin iframe requests an autofill popup, Electron does not constrain the popup's screen coordinates to the iframe's own bounding box. An attacker embedding malicious content in an iframe can therefore position the popup anywhere within the host window, including over trusted UI controls rendered by the parent application. This is a classic user interface (UI) redressing condition tracked under [CWE-1021: Improper Restriction of Rendered UI Layers or Frames].
Exploitation requires user interaction and depends on the host application embedding untrusted content alongside trusted UI. Applications that do not load third-party content in iframes are not exposed.
Root Cause
The autofill popup uses coordinates supplied by the requesting frame without clamping them to that frame's visible rectangle. The rendering pipeline treats the popup as a top-level chrome element rather than an iframe-scoped overlay, so the popup escapes the iframe's sandboxing boundary at the presentation layer.
Attack Vector
An attacker hosts malicious content that is embedded as a cross-origin iframe by a vulnerable Electron application. The iframe triggers a native autofill popup with attacker-chosen coordinates, drawing the popup over legitimate buttons, dialogs, or menus in the parent window. When the user clicks what appears to be trusted UI, the click is intercepted by the attacker-controlled popup, enabling action confusion or credential capture through spoofed prompts. The vulnerability requires user interaction and the attack complexity is high, since the attacker must know or predict the layout of the trusted UI. Refer to the GitHub Security Advisory GHSA-x8rc-wpg4-grpf for technical details.
Detection Methods for CVE-2026-70600
Indicators of Compromise
- Electron application binaries bundling framework versions earlier than 39.8.8, 40.9.0, or 41.2.1.
- User reports of autofill dropdowns appearing over unexpected areas of the application window.
- Cross-origin iframes loaded from untrusted domains inside application windows that also render sensitive controls.
Detection Strategies
- Inventory Electron-based desktop applications across the environment and extract their embedded Electron framework version from the application resources.
- Review application source or configuration for <iframe> or <webview> tags loading third-party origins within windows that display privileged UI.
- Correlate process telemetry with known vulnerable Electron builds using software composition analysis.
Monitoring Recommendations
- Track child process creation and network destinations initiated by Electron applications that host untrusted content.
- Alert on Electron applications loading remote content from domains outside an approved allowlist.
- Log user-reported UI anomalies through help-desk channels and correlate against vulnerable version inventory.
How to Mitigate CVE-2026-70600
Immediate Actions Required
- Upgrade Electron to 39.8.8, 40.9.0, 41.2.1, or 42.0.0-beta.3 and rebuild affected applications.
- Identify any application windows that embed untrusted third-party content alongside trusted UI and prioritize those for patching.
- Distribute updated application builds to end users through existing software distribution channels.
Patch Information
The Electron maintainers fixed the issue in versions 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3. Application developers must rebuild and redistribute their applications against a patched Electron release. See the GitHub Security Advisory GHSA-x8rc-wpg4-grpf for release notes.
Workarounds
- Remove or isolate cross-origin iframes from windows that also render trusted UI until patched builds are deployed.
- Disable autofill functionality in application settings where feasible.
- Load untrusted third-party content in a separate BrowserWindow that contains no trusted UI elements.
# Example package.json update to pin a patched Electron release
npm install --save-dev electron@41.2.1
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

