{"id":"CVE-2026-34769","aliases":["GHSA-9wfr-w7mm-pc7f"],"url":"https://o3.security/vulnerability/CVE-2026-34769","summary":"Electron: Renderer command-line switch injection via undocumented commandLineSwitches webPreference","details":"### Impact\nAn undocumented `commandLineSwitches` webPreference allowed arbitrary switches to be appended to the renderer process command line. Apps that construct `webPreferences` by spreading untrusted configuration objects may inadvertently allow an attacker to inject switches that disable renderer sandboxing or web security controls.\n\nApps are only affected if they construct `webPreferences` from external or untrusted input without an allowlist. Apps that use a fixed, hardcoded `webPreferences` object are not affected.\n\n### Workarounds\nDo not spread untrusted input into `webPreferences`. Use an explicit allowlist of permitted preference keys when constructing `BrowserWindow` or `webContents` options from external configuration.\n\n### Fixed Versions\n* `41.0.0-beta.8`\n* `40.7.0`\n* `39.8.0`\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)","published":"2026-04-03T23:33:55.952Z","modified":"2026-10-28T10:50:37.892612824Z","cvss":{"score":7.7,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"electron","fixedVersion":"38.8.6"},{"ecosystem":"npm","name":"electron","fixedVersion":"39.8.0"},{"ecosystem":"npm","name":"electron","fixedVersion":"40.7.0"},{"ecosystem":"npm","name":"electron","fixedVersion":"41.0.0-beta.8"}],"fix":null,"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34769.json"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-34769"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34769.json"},{"type":"ADVISORY","url":"https://github.com/electron/electron/security/advisories/GHSA-9wfr-w7mm-pc7f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34769"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2455004"},{"type":"PACKAGE","url":"https://github.com/electron/electron"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T10:50:37.892612824Z"}}