CVE-2022-21718
Renderers can obtain access to random bluetooth device without permission in Electron
Also known as GHSA-3p22-ghq8-v749
Mitigation
- Upgrade electron to one of 13.6.6, 14.2.4, 15.3.5, 16.0.6, 17.0.0-alpha.6 (or later in the same release line).
Who should check
- Projects that depend on npm package electron (< 13.6.6)
- Anyone running 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
Vulnerability facts
- Affected
- electron < 13.6.6
- Fixed in
- 13.6.6, 14.2.4, 15.3.5, 16.0.6, 17.0.0-alpha.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 3.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: High
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 1.00% chance of exploitation in 30 days (percentile 62, 2026-11-26)
- CWE
- CWE-668
- Modified
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 and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-21718. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-21718.md Affected: electron < 13.6.6 Fixed in: 13.6.6, 14.2.4, 15.3.5, 16.0.6, 17.0.0-alpha.6 Steps: 1. Search this machine and project for electron (npm), electron: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2022-21718 being exploited?
There is no confirmed exploitation: CVE-2022-21718 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.00% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-21718?
Low: CVSS 3.4 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2022-21718?
electron < 13.6.6.
Is there a fix for CVE-2022-21718?
Yes. Fixed in 13.6.6, 14.2.4, 15.3.5, 16.0.6, 17.0.0-alpha.6. Upgrade electron to one of 13.6.6, 14.2.4, 15.3.5, 16.0.6, 17.0.0-alpha.6 (or later in the same release line).
How do I check if I'm affected by CVE-2022-21718?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.