CVE-2026-34769
published high CVSS 3.1 · 7.8Electron: Renderer command-line switch injection via undocumented commandLineSwitches webPreference
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| electron | — | electron< 38.8.6 · >= 39.0.0-alpha.1, < 39.8.0 · >= 40.0.0-alpha.1, < 40.7.0 · >= 41.0.0-alpha.1, < 41.0.0-beta.8 | Affected | Not stated | GitHub_M |
| Red Hat | — | podman-desktop-macos-1-0Red Hat Build of Podman Desktop | Affected | Not stated | redhat-SADP |
| Red Hat | — | podman-desktop-windows-1-0Red Hat Build of Podman Desktop | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhdesktop/rh-podman-desktop-ext-openshift-local-rhel10Red Hat Build of Podman Desktop - Tech Preview | Affected | Not stated | redhat-SADP |
Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8, an 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. Apps 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. This issue has been patched in versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8.
A flaw was found in Electron, a framework for building desktop applications. This vulnerability arises from an undocumented `commandLineSwitches` webPreference that allows arbitrary command-line switches to be appended to the renderer process. A remote attacker could exploit this by providing malicious input to applications that construct `webPreferences` from untrusted sources. Successful exploitation could disable critical security controls like sandboxing, potentially leading to arbitrary code execution, privilege escalation, or sensitive information disclosure.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.7 | high | redhat-SADP · adp | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| electron | electron | < 38.8.6 (affected)>= 39.0.0-alpha.1, < 39.8.0 (affected)>= 40.0.0-alpha.1, < 40.7.0 (affected)>= 41.0.0-alpha.1, < 41.0.0-beta.8 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Build of Podman Desktop | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Build of Podman Desktop | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Build of Podman Desktop - Tech Preview | Default: affected | redhat-SADP · adp |
Weaknesses
3- CWE-88 CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
- CWE-912 CWE-912: Hidden Functionality
- CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
4- https://access.redhat.com/security/cve/CVE-2026-34769
- RHBZ#2455004 https://bugzilla.redhat.com/show_bug.cgi?id=2455004
- https://github.com/electron/electron/security/advisories/GHSA-9wfr-w7mm-pc7f
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34769.json
Provider assertions
3GitHub_M · cna
Electron: Renderer command-line switch injection via undocumented commandLineSwitches webPreference
redhat-SADP · adp
Electron: Electron: Arbitrary code execution and security bypass via undocumented command-line switches
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ff128294672366a8a339f773b0e49874989ce1c5d610760de97c32d82bd036dd
- Ingested
- 23 Sep 2026, 09:11:13 UTC
- Source record
- Official CVE record