{"id":"CVE-2026-34773","aliases":["GHSA-mwmh-mq4g-g6gr"],"url":"https://o3.security/vulnerability/CVE-2026-34773","summary":"Electron: Registry key path injection in app.setAsDefaultProtocolClient on Windows","details":"### Impact\nOn 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.\n\nApps 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.\n\n### Workarounds\nValidate the protocol name matches `/^[a-zA-Z][a-zA-Z0-9+.-]*$/` before passing it to `app.setAsDefaultProtocolClient()`.\n\n### Fixed Versions\n* `41.0.0`\n* `40.8.1`\n* `39.8.1`\n* `38.8.6`\n\n### For more information\nIf there are any questions or comments about this advisory, please email [security@electronjs.org](mailto:security@electronjs.org)","published":"2026-04-03T23:50:42.168Z","modified":"2026-08-12T15:33:39.662211Z","cvss":{"score":4.7,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"electron","fixedVersion":"38.8.6"},{"ecosystem":"npm","name":"electron","fixedVersion":"39.8.1"},{"ecosystem":"npm","name":"electron","fixedVersion":"40.8.1"},{"ecosystem":"npm","name":"electron","fixedVersion":"41.0.0"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34773.json"},{"type":"ADVISORY","url":"https://github.com/electron/electron/security/advisories/GHSA-mwmh-mq4g-g6gr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34773"},{"type":"PACKAGE","url":"https://github.com/electron/electron"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T15:33:39.662211Z"}}