Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electron
  4. ›
  5. CVE-2022-21718

CVE-2022-21718: Exposure of Resource to Wrong Sphere

March 22, 2022 (updated July 24, 2023)

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.

References

  • github.com/advisories/GHSA-3p22-ghq8-v749
  • github.com/electron/electron/pull/32178
  • github.com/electron/electron/pull/32240
  • github.com/electron/electron/security/advisories/GHSA-3p22-ghq8-v749
  • nvd.nist.gov/vuln/detail/CVE-2022-21718

Code Behaviors & Features

Detect and mitigate CVE-2022-21718 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 13.6.6, all versions starting from 14.0.0 before 14.2.4, all versions starting from 15.0.0 before 15.3.5, all versions starting from 16.0.0 before 16.0.6, version 17.0.0

Fixed versions

  • 13.6.6
  • 14.2.4
  • 15.3.5
  • 16.0.6
  • 17.0.1

Solution

Upgrade to versions 13.6.6, 14.2.4, 15.3.5, 16.0.6, 17.0.1 or above.

Impact 5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization

Source file

npm/electron/CVE-2022-21718.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:37 +0000.