Cross-site Request Forgery (CSRF) Affecting electron package, versions <42.11.3>=43.0.0-alpha.1 <43.7.0>=44.0.0-alpha.1 <44.3.0>=45.0.0-alpha.1 <45.0.0-alpha.6


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th 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 Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ELECTRON-21431570
  • published22 Oct 2026
  • disclosed22 Oct 2026
  • creditUnknown

Introduced: 22 Oct 2026

NewCVE-2026-113796  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade electron to version 42.11.3, 43.7.0, 44.3.0, 45.0.0-alpha.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 Cross-site Request Forgery (CSRF) via the OpenURLFromTab handler, which fails to route modifier-click and middle-click link navigations (and target-form-post popups) through the window-open policy. A <webview> tag without allowpopups is supposed to block popup creation, but because these link-triggered navigations bypass the CanCreateWindow check that window.open() already passes through, an attacker-controlled page loaded in such a <webview> can open new windows that should have been blocked. Additionally, the new window starts its navigation from a fresh browser-initiated loadURL rather than from the original OpenURLParams, causing incorrect attribution of the initiator origin, Sec-Fetch-Site, SameSite cookies, and external protocol handling.

Note: This is only exploitable if the application loads untrusted content and allows it to open new windows.

CVSS Base Scores

version 4.0
version 3.1