Vulnerability · Published Aug 5, 2026 · Assigned by GitHub_M

CVE-2026-70612Electron: Sandboxed iframes can launch external protocol handlers

Medium 5.4

In plain English

A medium-severity improper access control in electron from electron. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.4%top 62.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3, requests to open external protocol URLs from web content did not take iframe sandbox restrictions into account, so a sandboxed iframe could cause an OS-registered external application to be launched. The frame sandbox state was also not made available to the app permission handlers, affecting apps that render untrusted content in sandboxed iframes and grant the openExternal permission by default when no setPermissionRequestHandler is installed. This issue is fixed in 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmelectron39.8.8GHSA-p2rr-rvmm-c5fp
npmelectron40.9.0GHSA-p2rr-rvmm-c5fp
npmelectron41.2.1GHSA-p2rr-rvmm-c5fp
npmelectron42.0.0-beta.3GHSA-p2rr-rvmm-c5fp

Affected products (as reported)

VendorProductVersions
electron electron < 39.8.8>= 40.0.0-alpha.1, < 40.9.0>= 41.0.0-alpha.1, < 41.2.1>= 42.0.0-alpha.1, < 42.0.0-beta.3

Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N

References