Live threats

All CVEs / Electronjs

CVE-2022-21718Electronjs Electron

Medium 5.0

Priority
30
CVSS 3.1
5.0
EPSS
1.0%
probability of exploitation in 30 days · percentile 62
Auth required
Yes
Published
Mar 22, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-668, CWE-862
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Electron.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm electron < 13.6.6 13.6.6 npm install electron@13.6.6
npm electron ≥ 14.0.0-beta.1 < 14.2.4 14.2.4 npm install electron@14.2.4
npm electron ≥ 15.0.0-beta.1 < 15.3.5 15.3.5 npm install electron@15.3.5
npm electron ≥ 16.0.0-beta.1 < 16.0.6 16.0.6 npm install electron@16.0.6
npm electron ≥ 17.0.0-alpha.1 < 17.0.0-alpha.6 17.0.0-alpha.6 npm install electron@17.0.0-alpha.6

Per OSV / GitHub Advisories (GHSA-3p22-ghq8-v749). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
electronjselectron< 13.6.6
electronjselectron≥ 14.0.0 < 14.2.4
electronjselectron≥ 15.0.0 < 15.3.5
electronjselectron≥ 16.0.0 < 16.0.6
electronjselectron17.0.0
electronjselectron17.0.0
electronjselectron17.0.0
electronjselectron17.0.0
electronjselectron17.0.0

Official sources

References

Links published by the sources. Open them with care.

  • github.com Issue Tracking Patch Third Party Advisory
  • github.com Issue Tracking Patch Third Party Advisory
  • github.com Mitigation Third Party Advisory