{"id":"CVE-2026-34773","published":"2026-04-03T23:50:42Z","modified":"2026-04-06T16:03:54Z","title":"Electron: Registry key path injection in app.setAsDefaultProtocolClient on Windows","vendor":"electron","product":"electron","tier":"tail","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.1, 40.8.1, and 41.0.0, on Windows, app.setAsDefaultProtocolClient(protocol) did not validate the protocol name before writing to the registry. Apps that pass untrusted input as the protocol name may allow an attacker to write to arbitrary subkeys under HKCU\\Software\\Classes\\, potentially hijacking existing protocol handlers. Apps are only affected if they call app.setAsDefaultProtocolClient() with a protocol name derived from external or untrusted input. Apps that use a hardcoded protocol name are not affected. This issue has been patched in versions 38.8.6, 39.8.1, 40.8.1, and 41.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0025,"percentile":0.1663,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-mwmh-mq4g-g6gr","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.6,"factors":[{"name":"EPSS percentile","points":3.33},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":["< 38.8.6",">= 39.0.0-alpha.1, < 39.8.1",">= 40.0.0-alpha.1, < 40.8.1",">= 41.0.0-alpha.1, < 41.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-06T16:03:47.836700Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":["<38.8.6",">=39.0.0-alpha.1, <39.8.1",">=40.0.0-alpha.1, <40.8.1",">=41.0.0-alpha.1, <41.0.0"],"patched":["38.8.6","39.8.1","40.8.1","41.0.0"],"from":["GHSA-mwmh-mq4g-g6gr"],"provenance":"source"}],"summary":{"text":"The flaw is in Electron's app.setAsDefaultProtocolClient() on Windows, which wrote the protocol name to the registry without validating it, so untrusted input could alter where registry entries were written. An attacker with local access and low privileges, where the affected app passes externally or untrusted input as the protocol name, could write to arbitrary subkeys under HKCU\\Software\\Classes\\ and potentially hijack existing protocol handlers, though this requires the attacker to be able to supply that input and the attack complexity is high.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:07Z"},"euvd":{"id":"EUVD-2026-18945","exploited":false,"provenance":"source"}}