Live threats

All CVEs / Electronjs

CVE-2023-29198Electronjs Electron

High 8.5

Priority
51
CVSS 3.1
8.5
EPSS
0.7%
probability of exploitation in 30 days · percentile 49
Auth required
Yes
Published
Sep 6, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-754
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

What happens

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`.

Original NVD text.

What to do

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

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm electron < 22.3.6 22.3.6 npm install electron@22.3.6
npm electron ≥ 23.0.0-alpha.1 < 23.2.3 23.2.3 npm install electron@23.2.3
npm electron ≥ 24.0.0-alpha.1 < 24.0.1 24.0.1 npm install electron@24.0.1
npm electron ≥ 25.0.0-alpha.1 < 25.0.0-alpha.2 25.0.0-alpha.2 npm install electron@25.0.0-alpha.2

Per OSV / GitHub Advisories (GHSA-p7v2-p9m8-qqg7). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
electronjselectron< 22.3.6
electronjselectron≥ 23.0.0 < 23.2.3
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron24.0.0
electronjselectron25.0.0

Official sources

References

Links published by the sources. Open them with care.