CVE-2022-21718: Renderers can obtain access to random bluetooth device without permission in Electron

Published Mar 22, 2022
·
Updated

Impact This vulnerability allows renderers to obtain access to a random bluetooth device via the web bluetooth API if the app has not configured a custom select-bluetooth-device event handler. The device that is accessed is random and the attacker would have no way of selecting a specific device.

All current stable versions of Electron are affected.

Patches This has been patched and the following Electron versions contain the fix: 17.0.0-alpha.6 16.0.6 15.3.5 14.2.4 13.6.6

Workarounds Adding this code to your app can workaround the issue.

js app.on('web-contents-created', (event, webContents) => { webContents.on('select-bluetooth-device', (event, devices, callback) => { // Prevent default behavior event.preventDefault(); // Cancel the request callback(''); }); });

For more information If you have any questions or comments about this advisory, email us at security@electronjs.org.

Other sources

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 Software

14 affected componentsFixes available
npm/electron>=17.0.0-alpha.1<=17.0.0-alpha.5
17.0.0-alpha.6
npm/electron>=16.0.0-beta.1<16.0.6
16.0.6
npm/electron>=15.0.0-beta.1<15.3.5
15.3.5
npm/electron>=14.0.0-beta.1<14.2.4
14.2.4
npm/electron<13.6.6
13.6.6
electronjs Electron<13.6.6
electronjs Electron>=14.0.0<14.2.4
electronjs Electron>=15.0.0<15.3.5
electronjs Electron>=16.0.0<16.0.6
electronjs Electron=17.0.0-alpha1
electronjs Electron=17.0.0-alpha2
electronjs Electron=17.0.0-alpha3
electronjs Electron=17.0.0-alpha4
electronjs Electron=17.0.0-alpha5

Event History

Mar 22, 2022
CVE Published
via MITRE·04:25 PM
Data Sourced
via MITRE·04:25 PM
DescriptionSeverityWeakness
Advisory Published
06:49 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-21718?

CVE-2022-21718 is a vulnerability in Electron that allows renderers to obtain access to a random Bluetooth device via the web Bluetooth API.

2

How does CVE-2022-21718 impact my system?

CVE-2022-21718 allows unauthorized access to Bluetooth devices if the app has not configured a custom 'select-bluetooth-device' event handler.

3

What is the severity of CVE-2022-21718?

CVE-2022-21718 has a severity value of 5 (medium).

4

How can I fix CVE-2022-21718?

To fix CVE-2022-21718, update Electron to version 17.0.0-alpha.6 or apply the appropriate patch provided by the vendor.

5

Where can I find more information about CVE-2022-21718?

You can find more information about CVE-2022-21718 on the Electron GitHub security advisory (GHSA-3p22-ghq8-v749) and the NVD (National Vulnerability Database) website.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203