# CVE-2026-34767: Electron: HTTP Response Header Injection in custom protocol handlers and webRequest

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-03 · Modified: 2026-04-06
- Aliases: GHSA-4p4r-m79c-wq3v
- Record: https://cvemate.com/vulnerability/CVE-2026-34767 · JSON: https://cvemate.com/vulnerability/CVE-2026-34767/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- EPSS: 0.239%, percentile 16.05%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- electron 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
- electronjs electron: \< 38.8.6 \| ≥ 39.0.0, \< 39.8.3 \| ≥ 40.0.0, \< 40.8.3 \| ≥ 41.0.0, \< 41.0.3
- Npm electron (Npm): \< 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

## References

- <https://github.com/electron/electron/security/advisories/GHSA-4p4r-m79c-wq3v>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34767>
- <https://github.com/electron/electron>

---

Data as of 2026-12-05T09:39:09.836Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
