Electron: <webview> can enable Node.js integration in Web Workers despite embedder restrictions
electron
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| electron npm |
|
|
electron
| Product | Affected | Fixed in |
|---|---|---|
| electron npm |
|
|
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 41.10.6, 42.9.2, 43.4.1, and 44.0.0-beta.5, an Electron <webview> guest could enable nodeIntegrationInWorker for its Web Workers even when the unsandboxed embedder had Node.js integration disabled, allowing untrusted guest content to create a Node-enabled worker with more privilege than the embedder granted. Applications that do not enable the <webview> tag or that keep the embedder sandboxed are not affected. This issue is fixed in versions 41.10.6, 42.9.2, 43.4.1, and 44.0.0-beta.5.
From the CVE record · GitHub_M
An Electron <webview> guest can enable Node.js integration in its Web Workers even when its unsandboxed embedder has Node.js integration disabled. Untrusted guest content could thereby create a worker with more privilege than the embedder granted. Applications that do not enable <webview> or that keep the embedder sandboxed are not affected.
Check applications using npm electron versions below 41.10.6, from 42.0.0-alpha.1 to below 42.9.2, from 43.0.0-alpha.1 to below 43.4.1, or from 44.0.0-alpha.1 to below 44.0.0-beta.5.