CVE-2023-29198
Context isolation bypass via nested unserializable return value in Electron
Also known as GHSA-p7v2-p9m8-qqg7
Mitigation
- Upgrade electron to one of 22.3.6, 23.2.3, 24.0.1, 25.0.0-alpha.2 (or later in the same release line).
Who should check
- Projects that depend on npm package electron (< 22.3.6)
- Anyone running electron < 22.3.6; >= 23.0.0, < 23.2.3; >= 24.0.0, < 24.0.1; >= 25.0.0-alpha.1, < 25.0.0-alpha.2
Vulnerability facts
- Affected
- electron < 22.3.6
- Fixed in
- 22.3.6, 23.2.3, 24.0.1, 25.0.0-alpha.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 6.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: Low
- EPSS
- 0.70% chance of exploitation in 30 days (percentile 49, 2026-11-26)
- CWE
- CWE-754
- Modified
Description
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`.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-29198. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-29198.md Affected: electron < 22.3.6 Fixed in: 22.3.6, 23.2.3, 24.0.1, 25.0.0-alpha.2 Steps: 1. Search this machine and project for electron (npm), electron: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-29198 being exploited?
There is no confirmed exploitation: CVE-2023-29198 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-29198?
Medium: CVSS 6.0 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-29198?
electron < 22.3.6.
Is there a fix for CVE-2023-29198?
Yes. Fixed in 22.3.6, 23.2.3, 24.0.1, 25.0.0-alpha.2. Upgrade electron to one of 22.3.6, 23.2.3, 24.0.1, 25.0.0-alpha.2 (or later in the same release line).
How do I check if I'm affected by CVE-2023-29198?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.