HTTP Response Splitting Affecting electron package, versions <38.8.6>=39.0.0-alpha.1 <39.8.3>=40.0.0-alpha.2 <40.8.3>=41.0.0-alpha.1 <41.0.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-15875973
  • published3 Apr 2026
  • disclosed3 Apr 2026
  • creditUnknown

Introduced: 3 Apr 2026

NewCVE-2026-34767  (opens in a new tab)
CWE-113  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade electron to version 38.8.6, 39.8.3, 40.8.3, 41.0.3 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 HTTP Response Splitting via the protocol.handle, protocol.registerSchemesAsPrivileged, or webRequest.onHeadersReceived functions. An attacker can manipulate HTTP response headers by injecting attacker-controlled input into a response header name or value, potentially allowing the setting of arbitrary headers that affect cookies, content security policy, or cross-origin access controls.

Note:

This is only exploitable if untrusted external input is reflected into response headers.

Workaround

This vulnerability can be mitigated by validating or sanitizing any untrusted input before including it in a response header name or value.

CVSS Base Scores

version 4.0
version 3.1