CVE-2023-29198 json
Context isolation bypass via nested unserializable return value in Electron
published 2023-09-06 3 y ago modified 2026-09-10 1 mo ago also GHSA-p7v2-p9m8-qqg7 , EUVD-2023-2557
- cvss
- 6.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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`.
Patch / fix
- npm electron 22.3.6, 23.2.3, 24.0.1, 25.0.0-alpha.2
- electronjs electron 22.3.6, 23.2.3
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L |
| NVD | 3.1 | 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 6.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | electron | <22.3.6 >=23.0.0-alpha.1, <23.2.3 >=24.0.0-alpha.1, <24.0.1 >=25.0.0-alpha.1, <25.0.0-alpha.2 |
22.3.6 23.2.3 24.0.1 25.0.0-alpha.2 |
Affected products
- electron electron
Classification
- Weakness
-
- CWE-754 Improper Check for Unusual or Exceptional Conditions
References
-
github.com
/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7
web, mitigation, vendor-advisory
-
electronjs.org
/docs/latest/api/context-bridge#parameter--error--return-type-support
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2023-29198
advisory
-
github.com
/electron/electron
package
Sources
- CVE List CVE-2023-29198
- GitHub Advisory GHSA-p7v2-p9m8-qqg7
- NVD CVE-2023-29198
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.