# CVE-2023-29198: Context isolation bypass via nested unserializable return value in Electron

- Severity: Medium 6.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2023-09-06T19:50:58.000Z
- Modified: 2026-09-10T03:49:58.321Z
- Also known as: GHSA-p7v2-p9m8-qqg7
- Weaknesses: CWE-754
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- electron 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
- electron (npm): before 22.3.6; from 23.0.0-alpha.1 before 23.2.3; from 24.0.0-alpha.1 before 24.0.1; from 25.0.0-alpha.1 before 25.0.0-alpha.2
- electronjs electron: before 22.3.6; from 23.0.0 before 23.2.3; 24.0.0; 25.0.0

## Every score

- GitHub_M: CVSS:3.1 6.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7> (mitigation, vendor-advisory, web)
- <https://www.electronjs.org/docs/latest/api/context-bridge#parameter--error--return-type-support> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-29198> (advisory)
- <https://github.com/electron/electron> (package)

## Sources

- CVE List: [CVE-2023-29198](https://www.cve.org/CVERecord?id=CVE-2023-29198), CVE Terms of Use, modified 2024-09-26
- GitHub Advisory Database: [GHSA-p7v2-p9m8-qqg7](https://github.com/advisories/GHSA-p7v2-p9m8-qqg7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-29198](https://nvd.nist.gov/vuln/detail/CVE-2023-29198), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-29198 · Whole record: https://cve.day/CVE-2023-29198.json · Rebuilt by cve.day 2026-11-25T22:58:27.738Z
