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

CVE-2023-29198: Improper Check for Unusual or Exceptional Conditions

September 6, 2023 (updated September 11, 2023)

Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps using contextIsolation and contextBridge are affected. This is a context isolation bypass, meaning that code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions. This issue is only exploitable if an API exposed to the main world via contextBridge can return an object or array that contains a javascript object which cannot be serialized, for instance, a canvas rendering context. This would normally result in an exception being thrown Error: object could not be cloned. The app side workaround is to ensure that such a case is not possible. Ensure all values returned from a function exposed over the context bridge are supported. This issue has been fixed in versions 25.0.0-alpha.2, 24.0.1, 23.2.3, and 22.3.6.

References

  • github.com/advisories/GHSA-p7v2-p9m8-qqg7
  • github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7

Code Behaviors & Features

Detect and mitigate CVE-2023-29198 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 22.3.6, all versions starting from 23.0.0-alpha.1 before 23.2.3, all versions starting from 24.0.0-alpha.1 before 24.0.1, all versions starting from 25.0.0-alpha.1 before 25.0.0-alpha.2

Fixed versions

  • 22.3.6
  • 23.2.3
  • 24.0.1
  • 25.0.0-alpha.2

Solution

Upgrade to versions 22.3.6, 23.2.3, 24.0.1, 25.0.0-alpha.2 or above. *Note*: 25.0.0-alpha.2 may be an unstable version. Use caution.

Impact 8.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-754: Improper Check for Unusual or Exceptional Conditions

Source file

npm/electron/CVE-2023-29198.yml

Spotted a mistake? Edit the file on GitLab.

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

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