electron
Affected
- introduced
0, fixed13.6.6(semver)
Fixed versions
13.6.6
Fix
- Fixed version
13.6.6npm install [email protected]
Advisory
Also known as: CVE-2022-21718
Renderers can obtain access to random bluetooth device without permission in Electron
Impact
This vulnerability allows renderers to obtain access to a random bluetooth device via the web bluetooth API if the app has not configured a custom select-bluetooth-device event handler. The device that is accessed is random and the attacker would have no way of selecting a specific device.
All current stable versions of Electron are affected.
Patches
This has been patched and the following Electron versions contain the fix:
17.0.0-alpha.616.0.615.3.514.2.413.6.6Workarounds
Adding this code to your app can workaround the issue.
app.on('web-contents-created', (event, webContents) => {
webContents.on('select-bluetooth-device', (event, devices, callback) => {
// Prevent default behavior
event.preventDefault();
// Cancel the request
callback('');
});
});
For more information
If you have any questions or comments about this advisory, email us at [email protected].
Low Basis: The source's own band: LOW
0, fixed 13.6.6 (semver)13.6.6
13.6.6npm install [email protected]14.0.0-beta.1, fixed 14.2.4 (semver)14.2.4
14.2.4npm install [email protected]15.0.0-beta.1, fixed 15.3.5 (semver)15.3.5
15.3.5npm install [email protected]16.0.0-beta.1, fixed 16.0.6 (semver)16.0.6
16.0.6npm install [email protected]17.0.0-alpha.1, fixed 17.0.0-alpha.6 (semver)17.0.0-alpha.6
17.0.0-alpha.6npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0