Loading advisory.
Loading advisory.
Electron: Registry key path injection in app.setAsDefaultProtocolClient on Windows
On Windows, app.setAsDefaultProtocolClient(protocol) did not validate the protocol name before writing to the registry.
Published 2026-04-03 02:41 UTC · Modified 2026-04-06 23:18 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| electron | npm | < 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 | 38.8.6, 39.8.1, 40.8.1, 41.0.0 | npm install electron@38.8.6npm install electron@39.8.1npm install electron@40.8.1npm install electron@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.
Validate the protocol name matches /^[a-zA-Z][a-zA-Z0-9+.-]*$/ before passing it to app.setAsDefaultProtocolClient().
41.0.0
40.8.1
39.8.1
38.8.6
If there are any questions or comments about this advisory, please email security@electronjs.org
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.003 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.003 | 0.003 | v2026.06.15 |
| 2026-11-30 | 0.003 | 0.003 | v2026.06.15 |