Electron
Electron drops inherited HTML sandbox restrictions for popups opened through OpenURLFromTab
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 41.10.4
- >= 42.0.0-alpha.1, < 42.5.2
- >= 43.0.0-alpha.1, < 43.0.0
Fixed in 41.10.4, 42.5.2, 43.0.0
Mitigation
Upgrade electron to 41.10.4 or 42.5.2 or 43.0.0 or later.
References
- Vendor advisory github.com/electron/electron/security/advisori…
- Patch github.com/electron/electron/pull/52133
- Patch github.com/electron/electron/commit/7ea14d5f55…
5 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.