CVE-2026-34766: Electron missing authorization in select-usb-device callback

CVE-2026-34766 · Severity: low · CVSS 3.3 · Published 2026-04-04

Electron is a popular framework used to build desktop applications like Slack, Discord, and VS Code. A security flaw was found where an application could be tricked into connecting to a USB device that should have been restricted or filtered out by the app's settings. While this could allow unauthorized access to certain hardware, high-security devices on the global WebUSB blocklist remain protected.

Technologies: electron (npm). Vendors: npm.

Quick answers

Is CVE-2026-34766 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-34766 being exploited in the wild.
How severe is CVE-2026-34766?
Low severity, with a CVSS score of 3.3, published 4 April 2026.
Which products and versions are affected?
electron (npm) SEMVER:introduced=0,fixed=38.8.6.
Is there a fix for CVE-2026-34766?
Yes. electron (npm): upgrade to 38.8.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-34766 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2026-34766?
Check whether you run electron (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • electron (npm): upgrade to 38.8.6 or later
    npm install electron@38.8.6

Technical details

A missing authorization check (CWE-862) exists in Electron's WebUSB implementation. The 'select-usb-device' event callback failed to validate the chosen device ID against the filtered list provided to the handler. If an attacker can influence the handler's selection logic, they could grant the renderer process access to a USB device that was explicitly excluded via 'exclusionFilters' or did not match requested filters. The vulnerability is mitigated by the fact that the global WebUSB security blocklist is still enforced, and exploitation requires specific, unusual device-selection logic within the host application. Patches are available in versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8.

Affected products

  • ElectronJS 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

Identifiers

  • CVE-2026-34766
  • GHSA-9899-m83m-qhpj

Timeline

  • 2026-04-02: advisory: GitHub Advisory GHSA-9899-m83m-qhpj published
  • 2026-04-04: disclosed: CVE-2026-34766 published to NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.