CVE-2026-34767: Electron: HTTP Response Header Injection in custom protocol handlers and webRequest
Vulnerability summary
CVE-2026-34767 is a medium (CVSS 6.5) vulnerability in electron. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 16% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 03-04-2026PublishedVulnerability first disclosed.
- 06-04-2026Last modifiedVulnerability information updated.
Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 38.8.6, 39.8.3, 40.8.3, and 41.0.3, apps that register custom protocol handlers via protocol.handle() / protocol.registerSchemesAsPrivileged() or modify response headers via webRequest.onHeadersReceived may be vulnerable to HTTP response header injection if attacker-controlled input is reflected into a response header name or value. An attacker who can influence a header value may be able to inject additional response headers, affecting cookies, content security policy, or cross-origin access controls. Apps that do not reflect external input into response headers are not affected. This issue has been patched in versions 38.8.6, 39.8.3, 40.8.3, and 41.0.3.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:NDiffers
- OSV · NpmEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:NDiffers
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
16%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.21% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-74Improper Neutralization of Special Elements in Output Used by a Downstream ComponentThe product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
- CWE-113Improper Neutralization of CRLF Sequences in HTTP HeadersThe product receives data from an HTTP agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Electron1 product
- electron< 38.8.6 | ≥ 39.0.0-alpha.1, < 39.8.3 | ≥ 40.0.0-alpha.1, < 40.8.3 | ≥ 41.0.0-alpha.1, < 41.0.3
Electronjs1 product
- electron< 38.8.6 | ≥ 39.0.0, < 39.8.3 | ≥ 40.0.0, < 40.8.3 | ≥ 41.0.0, < 41.0.3
Npm1 product
- electron< 38.8.6 | ≥ 39.0.0-alpha.1, < 39.8.3 | ≥ 40.0.0-alpha.1, < 40.8.3 | ≥ 41.0.0-alpha.1, < 41.0.3
3 vendors · 3 products
References
3 links- github.com/electron/electron/security/advisories/GHSA-4p4r-m79c-wq3vX Refsource CONFIRMWEBVendor Advisory
- github.com/electron/electronPACKAGE