CVE-2026-34766
JSON

3.3low

Electron: USB device selection not validated against filtered device list

Severity
3.3low CVSS:3.1 by GitHub_M
Exploit likelihood
0.18% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9899-m83m-qhpj

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.

Affected

Product or packageVersionsReported by
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.8CVE List
electron (npm)before 38.8.6, from 39.0.0-alpha.1 before 39.8.0, from 40.0.0-alpha.1 before 40.7.0, from 41.0.0-alpha.1 before 41.0.0-beta.8GitHub Advisory Database
electronjs electronbefore 38.8.6, from 39.0.0 before 39.8.0, from 40.0.0 before 40.7.0, 41.0.0NVD

All scores

GitHub_M3.3low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
GitHub3.3low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Classification

CWE-862

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Workarounds

There are no app side workarounds, you must update to a patched version of Electron.

Fixed Versions
  • 41.0.0-beta.8
  • 40.7.0
  • 39.8.0
  • 38.8.6
For more information

If there are any questions or comments about this advisory, send an email to security@electronjs.org

NVD (es)

Electron es un framework para escribir aplicaciones de escritorio multiplataforma usando JavaScript, HTML y CSS. Antes de las versiones 38.8.6, 39.8.0, 40.7.0 y 41.0.0-beta.8, la devolución de llamada del evento select-usb-device no validaba el ID de dispositivo elegido contra la lista filtrada que se presentaba al gestor. Una aplicación cuyo gestor pudiera ser influenciado para seleccionar un ID de dispositivo fuera del conjunto filtrado concedería acceso a un dispositivo que no coincidía con los filtros solicitados por el renderizador o estaba listado en exclusionFilters. La lista de bloqueo de seguridad de WebUSB permaneció aplicada de todos modos, por lo que los dispositivos sensibles a la seguridad en la lista de bloqueo no se vieron afectados. El impacto práctico se limita a aplicaciones con lógica de selección de dispositivos inusual. Este problema ha sido parcheado en las versiones 38.8.6, 39.8.0, 40.7.0 y 41.0.0-beta.8.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-34766 changed 2026-04-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-9899-m83m-qhpj changed 2026-04-06CC-BY-4.0
NVDCVE-2026-34766 changed 2026-07-24Public domain