CVE-2026-102673

Electron drops inherited HTML sandbox restrictions for popups opened through OpenURLFromTab

Published Sep 29, 2026 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 41.10.4, 42.5.2, and 43.0.0, popups opened from a sandboxed iframe through Electron's OpenURLFromTab navigation path, including links using target="_blank" or a middle-click, did not receive the inherited HTML sandbox restrictions. An untrusted iframe using the allow-scripts allow-popups configuration could therefore open a popup with the embedding application's full origin, exposing that origin's cookies, storage, and same-origin scripting capabilities. Applications that do not embed untrusted content in sandboxed iframes are not affected. This issue is fixed in versions 41.10.4, 42.5.2, and 43.0.0.

Analysis

AI-generated

Technical impact

Electron's navigation function OpenURLFromTab allows a sandboxed iframe that permits scripts and popups to open a new window without inheriting the parent iframe's sandbox restrictions. An attacker controlling such an iframe can cause the popup to load with the full origin of the host application, thereby gaining access to that application's cookies, storage, and same‑origin scripting capabilities. The flaw could expose sensitive data and allow the attacker to execute arbitrary JavaScript within the context of the host application's origin, effectively letting a malicious iframe gain the privileges of the application. The vulnerability is identified as CWE‑346, CWE‑693 and CWE‑281 because it stems from missing authorization checks when copying sandbox constraints, improper control of resource usage across contexts, and an improper restriction of rendered HTML.

Affected Systems

All applications built with Electron prior to release 41.10.4, 42.5.2, or 43.0.0 are susceptible. This includes desktop software that embeds untrusted web content in sandboxed iframes with the allow‑scripts and allow‑popups attributes enabled. The affected component is Electron's OpenURLFromTab navigation path, used for opening links with target="_blank" or middle‑click behavior.

Risk and Exploitability

The CVSS score is 8.2, classifying the vulnerability as high severity. The EPSS score of 0.00147 indicates a very low but non-zero probability of exploitation. The flaw is not listed in CISA's KEV catalog, suggesting limited known exploitation yet significant risk. The most likely attack vector is local or file‑based: an attacker could supply a crafted web page or malicious iframe within a trusted Electron application, thereby triggering the popup behavior. If the user interacts with the iframe, the attacker could compromise application credentials or inject malicious scripts, leading to data leakage or unauthorized system control.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Electron to version 41.10.4 or later (including 42.5.2 and 43.0.0) which restores sandbox inheritance for popups.
  • Ensure that any iframe containing untrusted content does not enable allow‑scripts or allows popups; remove or restrict these attributes when embedding external sites.
  • If upgrading is temporarily infeasible, configure the application to block OpenURLFromTab or to validate the origin of popups before permitting them to load.

Generated by OpenCVE AI on October 2, 2026 at 01:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hq2x-r82h-9wj4 Electron drops inherited HTML sandbox restrictions for popups opened through OpenURLFromTab
History
Type Values Removed Values Added
First Time appeared Electronjs
Electronjs electron
CPEs cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha5:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:alpha6:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:beta1:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:42.0.0:beta2:*:*:*:node.js:*:*
Vendors & Products Electronjs
Electronjs electron
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Electron
Electron electron
Vendors & Products Electron
Electron electron
Type Values Removed Values Added
Description Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 41.10.4, 42.5.2, and 43.0.0, popups opened from a sandboxed iframe through Electron's OpenURLFromTab navigation path, including links using target="_blank" or a middle-click, did not receive the inherited HTML sandbox restrictions. An untrusted iframe using the allow-scripts allow-popups configuration could therefore open a popup with the embedding application's full origin, exposing that origin's cookies, storage, and same-origin scripting capabilities. Applications that do not embed untrusted content in sandboxed iframes are not affected. This issue is fixed in versions 41.10.4, 42.5.2, and 43.0.0.
Title Electron drops inherited HTML sandbox restrictions for popups opened through OpenURLFromTab
Weaknesses CWE-346
CWE-693
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-281

    Improper Preservation of Permissions

  • CWE-346

    Origin Validation Error

  • CWE-693

    Protection Mechanism Failure

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 30, 2026, 8:11 PM
Reserved
Sep 29, 2026, 4:10 PM
Status
Analyzed
Published
Sep 29, 2026, 5:17 PM
Modified
Oct 15, 2026, 2:01 PM
Severity
Important
Public date
Sep 29, 2026, 4:38 PM