CVE-2022-21718: electron Exposure of Resource to Wrong Sphere
Vulnerability summary
CVE-2022-21718 is a medium (CVSS 5.0) Exposure of Resource to Wrong Sphere vulnerability in electron. EPSS estimates a 0.95% chance of exploitation in the next 30 days, higher than 60.5% of scored vulnerabilities.
Timeline
- 22-03-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA3.4LowCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:N/A:NDiffers
- OSV · NpmEcosystem advisory · calculated3.4LowCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:N/A:NDiffers
EPSS trend
Probability
0.95%
Chance of exploitation in the next 30 days
Percentile
61%
Versus all other CVEs
30-day change
0.00 pp
From 0.95% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-668Exposure of Resource to Wrong SphereThe product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.
- CWE-862Missing AuthorizationThe product does not perform an authorization check when an actor attempts to access a resource or perform an action.
Affected systems
Electron1 product
- 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
Electronjs1 product
- electronEOL< 13.6.6 | ≥ 14.0.0, < 14.2.4 | ≥ 15.0.0, < 15.3.5 | ≥ 16.0.0, < 16.0.6 | 17.0.0:alpha1 | 17.0.0:alpha2 | 17.0.0:alpha3 | 17.0.0:alpha4 | 17.0.0:alpha5
Npm1 product
- 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.6
3 vendors · 3 products
References
5 links- github.com/electron/electron/security/advisories/GHSA-3p22-ghq8-v749X Refsource CONFIRMWEBMitigationThird Party Advisory
- github.com/electron/electronPACKAGE