Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electron
  4. ›
  5. CVE-2026-34767

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

April 3, 2026 (updated April 6, 2026)

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.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2026-34767 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 38.8.6, all versions starting from 39.0.0-alpha.1 before 39.8.3, all versions starting from 40.0.0-alpha.1 before 40.8.3, all versions starting from 41.0.0-alpha.1 before 41.0.3

Fixed versions

  • 38.8.6
  • 39.8.3
  • 40.8.3
  • 41.0.3

Solution

Upgrade to versions 38.8.6, 39.8.3, 40.8.3, 41.0.3 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

npm/electron/CVE-2026-34767.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.