What’s Vulnerable › Vulnerabilities
CVE-2022-21718: Renderers can obtain access to random bluetooth device without permission in Electron
- Severity: medium (CVSS 5.0 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-03-22 · updated 2026-06-17
- Weakness: CWE-668
Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. A vulnerability in versions prior to `17.0.0-alpha.6`, `16.0.6`, `15.3.5`, `14.2.4`, and `13.6.6` allows renderers to obtain access to a bluetooth device via the web bluetooth API if the app has not configured a custom `select-bluetooth-device` event handler. This has been patched and Electron versions `17.0.0-alpha.6`, `16.0.6`, `15.3.5`, `14.2.4`, and `13.6.6` contain the fix. Code from the GitHub Security Advisory can be added to the app to work around the issue.
Affected products
- electron: before 13.6.6; from 14.0.0 before 14.2.4; from 15.0.0 before 15.3.5; from 16.0.0 before 16.0.6; 17.0.0-alpha1, 17.0.0-alpha2, 17.0.0-alpha3, 17.0.0-alpha4, 17.0.0-alpha5 — fixed in 13.6.6, 14.2.4, 15.3.5, 16.0.6
How to fix
Upgrade to a fixed version: electron 13.6.6, 14.2.4, 15.3.5, 16.0.6. Check the vendor advisory for mitigations.
References
- https://github.com/electron/electron/pull/32178
- https://github.com/electron/electron/pull/32240
- https://github.com/electron/electron/security/advisories/GHSA-3p22-ghq8-v749
- https://github.com/electron/electron/pull/32178
- https://github.com/electron/electron/pull/32240
- https://github.com/electron/electron/security/advisories/GHSA-3p22-ghq8-v749
Get alerted when CVE-2022-21718 or the next vulnerability affects your stack