Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.10, 41.10.3, and 42.0.1, a sandboxed iframe without the allow-popups keyword could still open a new window or trigger setWindowOpenHandler with no user interaction because new-window navigations taking the OpenURL path did not apply the iframe sandbox popup restriction. Apps that embed untrusted content in sandboxed iframes and rely on the absence of allow-popups to prevent window creation are affected, while apps that deny window creation in setWindowOpenHandler or do not embed untrusted content in sandboxed iframes are not affected. This issue is fixed in 39.8.10, 41.10.3, and 42.0.1.
Published: 2026-08-05
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Electron, a framework for building desktop applications with web technologies, has a flaw in which a sandboxed iframe that does not specify the allow-popups attribute can still open new windows or invoke setWindowOpenHandler through navigations that take the OpenURL path. This bypass allows embedded untrusted content to create pop‑ups or otherwise change the windowing context without the user’s consent, potentially leading to unwanted pop‑ups, phishing attempts, or other disruptive behaviors. The weakness is identified as a sandbox escape and unvalidated control flow.

Affected Systems

Applications built with Electron versions prior to 39.8.10, 41.10.3, or 42.0.1 that embed untrusted content in sandboxed iframes without the allow-popups keyword are vulnerable. Applications that explicitly deny window creation in setWindowOpenHandler or that do not embed untrusted content in sandboxed iframes are not affected.

Risk and Exploitability

The CVSS score of 7.2 classifies the flaw as high severity. No EPSS score is available, so current exploitation likelihood cannot be quantified. The vulnerability is not listed in CISA’s KEV catalog. The attack vector is inferred to be remote content—an adversary can host malicious content in an iframe that is loaded by the application. If the app permits that content, the attacker could silently open pop‑ups or hijack the window with no user interaction. The primary impact is the violation of sandbox restrictions and potential for malicious pop‑ups or undesired script execution.

Generated by OpenCVE AI on August 5, 2026 at 20:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Electron to version 39.8.10 or newer (including 41.10.3 and 42.0.1) to receive the fix that enforces the allow-popups restriction on OpenURL navigations.
  • If an immediate upgrade is not possible, configure setWindowOpenHandler to deny or filter window creation requests originating from sandboxed iframes.
  • Avoid embedding untrusted web content in sandboxed iframes or add the allow-popups attribute to trusted iframes to avoid accidental window creation.

Generated by OpenCVE AI on August 5, 2026 at 20:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-9f4c-93c8-jc8g Electron: Sandboxed iframe can bypass the allow-popups restriction via the OpenURL navigation path
History

Wed, 05 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Electron
Electron electron
Vendors & Products Electron
Electron electron

Wed, 05 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 05 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.10, 41.10.3, and 42.0.1, a sandboxed iframe without the allow-popups keyword could still open a new window or trigger setWindowOpenHandler with no user interaction because new-window navigations taking the OpenURL path did not apply the iframe sandbox popup restriction. Apps that embed untrusted content in sandboxed iframes and rely on the absence of allow-popups to prevent window creation are affected, while apps that deny window creation in setWindowOpenHandler or do not embed untrusted content in sandboxed iframes are not affected. This issue is fixed in 39.8.10, 41.10.3, and 42.0.1.
Title Electron: Sandboxed iframe can bypass the allow-popups restriction via the OpenURL navigation path
Weaknesses CWE-1021
CWE-693
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

Electron Electron
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-05T18:46:49.877Z

Reserved: 2026-08-04T19:50:27.329Z

Link: CVE-2026-70608

cve-icon Vulnrichment

Updated: 2026-08-05T18:14:04.893Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T20:15:12Z

Weaknesses
  • CWE-1021

    Improper Restriction of Rendered UI Layers or Frames

  • CWE-693

    Protection Mechanism Failure