Insecure Default Initialization of Resource Affecting electron package, versions >=44.0.0-alpha.1 <44.0.0-beta.5>=43.0.0-alpha.1 <43.4.1>=42.0.0-alpha.1 <42.9.2<41.10.6


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-ELECTRON-20335447
  • published30 Sept 2026
  • disclosed29 Sept 2026
  • creditliangjs, keenanwgn, XlabAITeam

Introduced: 29 Sep 2026

NewCVE-2026-102676  (opens in a new tab)
CWE-1188  (opens in a new tab)

How to fix?

Upgrade electron to version 44.0.0-beta.5, 43.4.1, 42.9.2, 41.10.6 or higher.

Overview

electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS.

Affected versions of this package are vulnerable to Insecure Default Initialization of Resource via the webpreferences attribute on a <webview> tag, which omitted nodeIntegrationInWorker from the list of security options a guest inherits from its embedder. An attacker who can influence the webpreferences attribute can set nodeIntegrationInWorker on a guest whose embedder has it disabled, granting the guest's dedicated workers a Node.js environment the embedder did not authorize and, with an unsandboxed embedder, dropping the guest out of the sandbox entirely. The same omission affects child windows opened via window.open, where the equivalent inheritance list in guest-window-manager.ts also lacked nodeIntegrationInWorker.

Note: This is only exploitable if the app enables the <webview> tag and the embedder is unsandboxed.

CVSS Base Scores

version 4.0
version 3.1