{"id":"CVE-2026-34768","aliases":["CVE-2026-34768","GHSA-jfqx-fxh3-c62j"],"related":[],"kind":"vulnerability","state":"published","title":"Electron: Unquoted executable path in app.setLoginItemSettings on Windows","summary":"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.0, and 41.0.0-beta.8, 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. This issue has been patched in versions 38.8.6, 39.8.1, 40.8.0, and 41.0.0-beta.8.","summarySource":"cvelist","descriptions":[{"lang":"en","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.0, and 41.0.0-beta.8, 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. This issue has been patched in versions 38.8.6, 39.8.1, 40.8.0, and 41.0.0-beta.8.","source":"cvelist"},{"lang":"en","text":"### Impact\nOn 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.\n\nOn a default Windows install, standard system directories are protected against writes by standard users, so exploitation typically requires a non-standard install location.\n\n### Workarounds\nInstall the application to a path without spaces, or to a location where all ancestor directories are protected against unauthorized writes.\n\n### Fixed Versions\n* `41.0.0-beta.8`\n* `40.8.0`\n* `39.8.1`\n* `38.8.6`\n\n### For more information\nIf there are any questions or comments about this advisory, send an email to [security@electronjs.org](mailto:security@electronjs.org)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Electron es un framework para escribir aplicaciones de escritorio multiplataforma usando JavaScript, HTML y CSS. Antes de las versiones 38.8.6, 39.8.1, 40.8.0 y 41.0.0-beta.8, en Windows, app.setLoginItemSettings({openAtLogin: true}) escribía la ruta del ejecutable en la clave de registro Run sin comillas. Si la aplicación está instalada en una ruta que contiene espacios, un atacante con acceso de escritura a un directorio ancestro podría hacer que se ejecute un ejecutable diferente al iniciar sesión en lugar de la aplicación prevista. En una instalación predeterminada de Windows, los directorios del sistema estándar están protegidos contra escrituras por usuarios estándar, por lo que la explotación normalmente requiere una ubicación de instalación no estándar. Este problema ha sido parcheado en las versiones 38.8.6, 39.8.1, 40.8.0 y 41.0.0-beta.8.","source":"nvd"}],"published":"2026-04-03T02:38:08.000Z","modified":"2026-07-24T22:10:00.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L","score":3.9,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L","score":3.9,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L","score":3.9,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-428"],"affected":[{"ranges":[{"version":"< 38.8.6","status":"affected"},{"version":">= 39.0.0-alpha.1, < 39.8.1","status":"affected"},{"version":">= 40.0.0-alpha.1, < 40.8.0","status":"affected"},{"version":">= 41.0.0-alpha.1, < 41.0.0-beta.8","status":"affected"}],"vendor":"electron","product":"electron","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"38.8.6"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"39.0.0-alpha.1","status":"affected","fixed":"39.8.1"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"40.0.0-alpha.1","status":"affected","fixed":"40.8.0"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"41.0.0-alpha.1","status":"affected","fixed":"41.0.0-beta.8"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"38.8.6"},{"status":"affected","introduced":"39.0.0","fixed":"39.8.1"},{"status":"affected","introduced":"40.0.0","fixed":"40.8.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"},{"status":"affected","version":"41.0.0"}],"vendor":"electronjs","product":"electron","cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-jfqx-fxh3-c62j","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34768","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-06T19:08:45.331Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34768","url":"https://www.cve.org/CVERecord?id=CVE-2026-34768","licence":"CVE Terms of Use","modified":"2026-04-06T19:08:58.533Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jfqx-fxh3-c62j","url":"https://github.com/advisories/GHSA-jfqx-fxh3-c62j","licence":"CC-BY-4.0","modified":"2026-04-06T23:19:48.346Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34768","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34768","licence":"Public domain","modified":"2026-07-24T22:10:00.140Z"}],"updatedAt":"2026-11-25T22:59:17.939Z","epss":{"score":0.00161,"percentile":0.02812,"date":"2026-11-30T12:00:22.000Z"}}