CVE-2022-21718
MEDIUM 5.0CVSS 3.1Renderers can obtain access to random bluetooth device without permission in Electron
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.
- Published
- 22 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-668CWE-862
- Also known as
- GHSA-3p22-ghq8-v749
- Sources
- NVDJSONOSV GHSA-3p22-ghq8-v749JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.4 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.4 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:* |
< 13.6.6 | 13.6.6 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:* |
>= 14.0.0, < 14.2.4 | 14.2.4 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:* |
>= 15.0.0, < 15.3.5 | 15.3.5 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:* |
>= 16.0.0, < 16.0.6 | 16.0.6 |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:17.0.0:alpha1:*:*:*:*:*:* |
= 17.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:17.0.0:alpha2:*:*:*:*:*:* |
= 17.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:17.0.0:alpha3:*:*:*:*:*:* |
= 17.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:17.0.0:alpha4:*:*:*:*:*:* |
= 17.0.0 | |
| NVD | electronjs | electroncpe:2.3:a:electronjs:electron:17.0.0:alpha5:*:*:*:*:*:* |
= 17.0.0 | |
| OSV | npm | electron | < 13.6.6 | 13.6.6 |
| OSV | npm | electron | >= 14.0.0-beta.1, < 14.2.4 | 14.2.4 |
| OSV | npm | electron | >= 15.0.0-beta.1, < 15.3.5 | 15.3.5 |
| OSV | npm | electron | >= 16.0.0-beta.1, < 16.0.6 | 16.0.6 |
| OSV | npm | electron | >= 17.0.0-alpha.1, < 17.0.0-alpha.6 | 17.0.0-alpha.6 |
References
- https://github.com/electron/electron/pull/32178 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/electron/electron/pull/32240 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/electron/electron/security/advisories/GHSA-3p22-ghq8-v749 · Mitigation, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21718 · ADVISORY
- https://github.com/electron/electron · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 22 Mar 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 22 Mar 2022)