{"schemaVersion":3,"id":"CVE-2023-29198","aliases":["GHSA-p7v2-p9m8-qqg7"],"status":"published","duplicateOf":null,"title":"Context isolation bypass via nested unserializable return value in Electron","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`.","dates":{"published":"2023-09-06T20:13:56.313Z","modified":"2024-09-26T15:12:58.704Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":6,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L","exploitability":4.6,"impact":6.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0059,"percentile":0.47478,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.0059},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.0059,"percentile":0.47478}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0059,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.0059,"percentile":0.47478}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions","description":"The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/754.html"}],"affected":[{"vendor":"electron","product":"electron","name":"electron","label":"electron","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 22.3.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 23.0.0, < 23.2.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 24.0.0, < 24.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 25.0.0-alpha.1, < 25.0.0-alpha.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 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","eol":null,"hubHref":"/vendor/electron/electron"},{"vendor":"electronjs","product":"electron","name":"electron","label":"electron","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 22.3.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 23.0.0, < 23.2.3","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:alpha1","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:alpha2","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:alpha3","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:alpha4","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:alpha5","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:alpha6","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:alpha7","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:beta4","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:beta5","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:beta6","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:beta7","noFixRecorded":false,"fixedIn":null},{"text":"25.0.0:alpha1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 22.3.6 | ≥ 23.0.0, < 23.2.3 | 24.0.0 | 24.0.0:alpha1 | 24.0.0:alpha2 | 24.0.0:alpha3 | 24.0.0:alpha4 | 24.0.0:alpha5 | 24.0.0:alpha6 | 24.0.0:alpha7 | 24.0.0:beta1 | 24.0.0:beta2 | 24.0.0:beta3 | 24.0.0:beta4 | 24.0.0:beta5 | 24.0.0:beta6 | 24.0.0:beta7 | 25.0.0:alpha1","eol":{"isEol":true,"eolDate":"2023-10-11T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"24","label":"24","eolFrom":"2023-10-11T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"24.8.8"},"product":{"name":"electron","label":"Electron","category":"framework"}},"hubHref":"/vendor/electronjs/electron"},{"vendor":"Npm","product":"electron","name":"electron","label":"electron","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/electron","purlType":"npm","versions":[{"text":"< 22.3.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 23.0.0-alpha.1, < 23.2.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 24.0.0-alpha.1, < 24.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 25.0.0-alpha.1, < 25.0.0-alpha.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 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","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7","label":"github.com/electron/electron/security/advisories/GHSA-p7v2-p9m8-qqg7","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Mitigation","Vendor Advisory"]},{"url":"https://www.electronjs.org/docs/latest/api/context-bridge#parameter--error--return-type-support","label":"www.electronjs.org/docs/latest/api/context-bridge","hostname":"www.electronjs.org","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29198","label":"nvd.nist.gov/vuln/detail/CVE-2023-29198","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/electron/electron","label":"github.com/electron/electron","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-09-06T20:13:56.313Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-26T15:12:58.704Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T22:12:40.974Z","stale":false,"partial":false}}