CVE-2026-34767
MEDIUM 6.5CVSS 3.1Electron: HTTP Response Header Injection in custom protocol handlers and webRequest
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.
- Published
- 4 Apr 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-113CWE-74
- Also known as
- GHSA-4p4r-m79c-wq3v
- Sources
- NVDJSONOSV GHSA-4p4r-m79c-wq3vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* |
< 38.8.6 | 38.8.6 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* |
>= 39.0.0, < 39.8.3 | 39.8.3 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* |
>= 40.0.0, < 40.8.3 | 40.8.3 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* |
>= 41.0.0, < 41.0.3 | 41.0.3 |
| OSV | npm | electron | < 38.8.6 | 38.8.6 |
| OSV | npm | electron | >= 39.0.0-alpha.1, < 39.8.3 | 39.8.3 |
| OSV | npm | electron | >= 40.0.0-alpha.1, < 40.8.3 | 40.8.3 |
| OSV | npm | electron | >= 41.0.0-alpha.1, < 41.0.3 | 41.0.3 |
References
- https://github.com/electron/electron/security/advisories/GHSA-4p4r-m79c-wq3v · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-34767 · ADVISORY
- https://github.com/electron/electron · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 4 Apr 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Apr 2026)