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

CVE-2026-34773: Electron: Registry key path injection in app.setAsDefaultProtocolClient on Windows

April 3, 2026 (updated April 6, 2026)

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.

References

  • github.com/advisories/GHSA-mwmh-mq4g-g6gr
  • github.com/electron/electron
  • github.com/electron/electron/security/advisories/GHSA-mwmh-mq4g-g6gr
  • nvd.nist.gov/vuln/detail/CVE-2026-34773

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 38.8.6, all versions starting from 39.0.0-alpha.1 before 39.8.1, all versions starting from 40.0.0-alpha.1 before 40.8.1, all versions starting from 41.0.0-alpha.1 before 41.0.0

Fixed versions

  • 38.8.6
  • 39.8.1
  • 40.8.1
  • 41.0.0

Solution

Upgrade to versions 38.8.6, 39.8.1, 40.8.1, 41.0.0 or above.

Impact 4.7 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

npm/electron/CVE-2026-34773.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:19:22 +0000.