CVE-2026-34766 in Electronjs Electron
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, the select-usb-device event callback did not validate the chosen device ID against the filtered list that was presented to the handler. An app whose han...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Electronjs | Electron | 41.0.0 < 38.8.6 ≥ 39.0.0, < 39.8.0 ≥ 40.0.0, < 40.7.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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, the select-usb-device event callback did not validate the chosen device ID against the filtered list that was presented to the handler. An app whose handler could be influenced to select a device ID outside the filtered set would grant access to a device that did not match the renderer's requested filters or was listed in exclusionFilters. The WebUSB security blocklist remained enforced regardless, so security-sensitive devices on the blocklist were not affected. The practical impact is limited to apps with unusual device-selection logic. This issue has been patched in versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-34766 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-151334-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| Published | 2026-04-04 |
| Last modified | 2026-07-24 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-862: Missing Authorization
Software does not check whether an authenticated actor has permission for the requested operation.
Related attack patterns (CAPEC)
CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-862
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in Electron prior to versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8 allows an attacker to potentially select a USB device ID outside the filtered list, leading to unauthorized access to USB devices.
An attacker could craft a malicious application or influence an existing application's handler to select a USB device ID that was not intended to be accessible, bypassing the intended security restrictions.
Questions
What is CVE-2026-34766?
A vulnerability in Electron prior to versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8 allows an attacker to potentially select a USB device ID outside the filtered list, leading to unauthorized access to USB devices.
What is the CVSS score for CVE-2026-34766?
CVE-2026-34766 has CVSS 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N. EPSS: 0.2%.
Is CVE-2026-34766 actively exploited?
No confirmed active exploitation of CVE-2026-34766 as of 2026-07-25.
How do I remediate CVE-2026-34766?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2026-34766?
CVE-2026-34766 affects Electronjs Electron.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Electronjs","product":"Electron","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-24.