Electron: Sandboxed iframes can launch external protocol handlers
Package
Affected versions
< 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
Patched versions
39.8.8
40.9.0
41.2.1
42.0.0-beta.3
Description
Published to the GitHub Advisory Database
Aug 5, 2026
Reviewed
Aug 5, 2026
Last updated
Aug 5, 2026
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
openExternalpermission (granted by default when nosetPermissionRequestHandleris installed). Apps whose permission handler deniesopenExternalfor untrusted content are not affected.Workarounds
Install a
setPermissionRequestHandlerthat denies theopenExternalpermission for untrusted content.Fixed Versions
42.0.0-beta.341.2.140.9.039.8.8For more information
If you have any questions or comments about this advisory, email Electron at security@electronjs.org
References