{"id":"CVE-2026-34767","aliases":["CVE-2026-34767","GHSA-4p4r-m79c-wq3v"],"related":[],"kind":"vulnerability","state":"published","title":"Electron: HTTP Response Header Injection in custom protocol handlers and webRequest","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nApps 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.\n\nAn 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.\n\nApps that do not reflect external input into response headers are not affected.\n\n### Workarounds\nValidate or sanitize any untrusted input before including it in a response header name or value.\n\n### Fixed Versions\n* `41.0.3`\n* `40.8.3`\n* `39.8.3`\n* `38.8.6`\n\n### For more information\nIf there are any questions or comments about this advisory, send an email to [security@electronjs.org](mailto:security@electronjs.org)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Electron es un framework para escribir aplicaciones de escritorio multiplataforma usando JavaScript, HTML y CSS. Antes de las versiones 38.8.6, 39.8.3, 40.8.3 y 41.0.3, las aplicaciones que registran manejadores de protocolo personalizados a través de protocol.handle() / protocol.registerSchemesAsPrivileged() o modifican los encabezados de respuesta a través de webRequest.onHeadersReceived pueden ser vulnerables a la inyección de encabezados de respuesta HTTP si la entrada controlada por el atacante se refleja en un nombre o valor de encabezado de respuesta. Un atacante que puede influir en un valor de encabezado puede ser capaz de inyectar encabezados de respuesta adicionales, afectando las cookies, la política de seguridad de contenido o los controles de acceso de origen cruzado. Las aplicaciones que no reflejan entrada externa en los encabezados de respuesta no se ven afectadas. Este problema ha sido parcheado en las versiones 38.8.6, 39.8.3, 40.8.3 y 41.0.3.","source":"nvd"}],"published":"2026-04-03T02:37:24.000Z","modified":"2026-07-24T22:10:00.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-74","CWE-113"],"affected":[{"ranges":[{"version":"< 38.8.6","status":"affected"},{"version":">= 39.0.0-alpha.1, < 39.8.3","status":"affected"},{"version":">= 40.0.0-alpha.1, < 40.8.3","status":"affected"},{"version":">= 41.0.0-alpha.1, < 41.0.3","status":"affected"}],"vendor":"electron","product":"electron","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"38.8.6"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"39.0.0-alpha.1","status":"affected","fixed":"39.8.3"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"40.0.0-alpha.1","status":"affected","fixed":"40.8.3"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"41.0.0-alpha.1","status":"affected","fixed":"41.0.3"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"38.8.6"},{"status":"affected","introduced":"39.0.0","fixed":"39.8.3"},{"status":"affected","introduced":"40.0.0","fixed":"40.8.3"},{"status":"affected","introduced":"41.0.0","fixed":"41.0.3"}],"vendor":"electronjs","product":"electron","cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-4p4r-m79c-wq3v","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34767","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-06T19:07:46.602Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34767","url":"https://www.cve.org/CVERecord?id=CVE-2026-34767","licence":"CVE Terms of Use","modified":"2026-04-06T19:07:57.198Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4p4r-m79c-wq3v","url":"https://github.com/advisories/GHSA-4p4r-m79c-wq3v","licence":"CC-BY-4.0","modified":"2026-04-06T23:21:01.480Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34767","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34767","licence":"Public domain","modified":"2026-07-24T22:10:00.140Z"}],"updatedAt":"2026-11-25T22:59:17.939Z","epss":{"score":0.00241,"percentile":0.16364,"date":"2026-12-01T12:00:22.000Z"}}