GHSA-p2rr-rvmm-c5fp: Electron: Sandboxed iframes can launch external protocol handlers
Impact
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's sandbox state was also not made available to the app's permission handlers.
Apps are only affected if they render untrusted content in sandboxed iframes and grant the openExternal permission (granted by default when no setPermissionRequestHandler is installed). Apps whose permission handler denies openExternal for untrusted content are not affected.
Workarounds
Install a setPermissionRequestHandler that denies the openExternal permission for untrusted content.
Fixed Versions
- 42.0.0-beta.3
- 41.2.1
- 40.9.0
- 39.8.8
For more information
If you have any questions or comments about this advisory, email Electron at security@electronjs.org
Details
Original advisory: https://github.com/advisories/GHSA-p2rr-rvmm-c5fp
Referenced CVEs
| CVE | CSIRTS overview | External |
|---|---|---|
| CVE-2026-70612 | coverage & exploitation status | NVD · CVE.org |
More from GitHub Security Advisories
- mediumGHSA-f2r8-jv7c-xqmp: Electron: DevTools embedder handler executes arbitrary files via shell open2026-08-05
- mediumGHSA-ff2p-hmqr-hxm4: Electron: contextBridge object copy honors prototype setters2026-08-05
- mediumGHSA-4f78-qhmw-8j8m: Electron: DevTools JavaScript Injection via Unsanitized Dock State Parameter2026-08-05
- highGHSA-9f4c-93c8-jc8g: Electron: Sandboxed iframe can bypass the allow-popups restriction via the OpenURL naviga…2026-08-05
- mediumGHSA-v93f-fgjr-hjrj: Electron: window.open features string controls some window options considered privileged2026-08-05