Vulnerability · Published Mar 22, 2022 · Assigned by GitHub_M
CVE-2022-21718Renderers can obtain access to random bluetooth device without permission in Electron
Low 3.4
In plain English
A low-severity security flaw in electron from electron. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | electron | 13.6.6 | GHSA-3p22-ghq8-v749 |
| npm | electron | 14.2.4 | GHSA-3p22-ghq8-v749 |
| npm | electron | 15.3.5 | GHSA-3p22-ghq8-v749 |
| npm | electron | 16.0.6 | GHSA-3p22-ghq8-v749 |
| npm | electron | 17.0.0-alpha.6 | GHSA-3p22-ghq8-v749 |
Affected products (as reported)
Weakness: CWE-668 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:N/A:N
References
- https://github.com/electron/electron/security/advisories/GHSA-3p22-ghq8-v749 x_refsource_CONFIRM
- https://github.com/electron/electron/pull/32178 x_refsource_MISC
- https://github.com/electron/electron/pull/32240 x_refsource_MISC