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

CVE-2026-34768: Electron: Unquoted executable path in app.setLoginItemSettings on Windows

April 3, 2026 (updated April 6, 2026)

On Windows, app.setLoginItemSettings({openAtLogin: true}) wrote the executable path to the Run registry key without quoting. If the app is installed to a path containing spaces, an attacker with write access to an ancestor directory may be able to cause a different executable to run at login instead of the intended app.

On a default Windows install, standard system directories are protected against writes by standard users, so exploitation typically requires a non-standard install location.

References

  • github.com/advisories/GHSA-jfqx-fxh3-c62j
  • github.com/electron/electron
  • github.com/electron/electron/security/advisories/GHSA-jfqx-fxh3-c62j
  • nvd.nist.gov/vuln/detail/CVE-2026-34768

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

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.0, all versions starting from 41.0.0-alpha.1 before 41.0.0-beta.8

Fixed versions

  • 38.8.6
  • 39.8.1
  • 40.8.0
  • 41.0.0-beta.8

Solution

Upgrade to versions 38.8.6, 39.8.1, 40.8.0, 41.0.0-beta.8 or above.

Impact 3.9 LOW

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

Learn more about CVSS

Weakness

  • CWE-428: Unquoted Search Path or Element

Source file

npm/electron/CVE-2026-34768.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:05 +0000.