Skip to content
OpenAdvisories
Low · 3.4 CVE-2022-21718 EUVD-2022-1290GHSA-3p22-ghq8-v749

Renderers can obtain access to random bluetooth device without permission in Electron

Published Mar 22, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

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

VendorProductAffectedFixed
electron electron < 13.6.6, >= 14.0.0-beta.1, < 14.2.4, >= 15.0.0-beta.1, < 15.3.5, >= 16.0.0-beta.1, < 16.0.6, >= 17.0.0-alpha.1, <= 17.0.0-alpha.5 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm electron < 13.6.6 13.6.6 GHSA-3p22-ghq8-v749
npm electron >= 14.0.0-beta.1, < 14.2.4 14.2.4 GHSA-3p22-ghq8-v749
npm electron >= 15.0.0-beta.1, < 15.3.5 15.3.5 GHSA-3p22-ghq8-v749
npm electron >= 16.0.0-beta.1, < 16.0.6 16.0.6 GHSA-3p22-ghq8-v749
npm electron >= 17.0.0-alpha.1, < 17.0.0-alpha.6 17.0.0-alpha.6 GHSA-3p22-ghq8-v749

References