{"schemaVersion":3,"id":"CVE-2023-23623","aliases":["GHSA-gxh7-wv9q-fwfr"],"status":"published","duplicateOf":null,"title":null,"description":"Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. A Content-Security-Policy that disables eval, specifically setting a `script-src` directive and _not_ providing `unsafe-eval` in that directive, is not respected in renderers that have sandbox disabled.  i.e. `sandbox: false` in the `webPreferences` object. This allows usage of methods like `eval()` and `new Function` unexpectedly which can result in an expanded attack surface. This issue only ever affected the 22 and 23 major versions of Electron and has been fixed in the latest versions of those release lines. Specifically, these versions contain the fixes: 22.0.1 and 23.0.0-alpha.2 We recommend all apps upgrade to the latest stable version of Electron. If upgrading isn't possible, this issue can be addressed without upgrading by enabling `sandbox: true` on all renderers.","dates":{"published":"2023-09-06T20:16:10.381Z","modified":"2024-09-26T17:48:22.057Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00664,"percentile":0.5111,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00664},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00664,"percentile":0.5111}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00664,"percentile":0.5111}]},"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-670","name":"Always-Incorrect Control Flow Implementation","description":"The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/670.html"}],"affected":[{"vendor":"electron","product":"electron","name":"electron","label":"electron","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 22.0.0-beta.1, < 22.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 23.0.0-alpha.1, < 23.0.0-alpha.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 22.0.0-beta.1, < 22.0.1 | ≥ 23.0.0-alpha.1, < 23.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.0.0","noFixRecorded":false,"fixedIn":null},{"text":"22.0.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"22.0.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"22.0.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"22.0.0:beta4","noFixRecorded":false,"fixedIn":null},{"text":"22.0.0:beta5","noFixRecorded":false,"fixedIn":null},{"text":"22.0.0:beta6","noFixRecorded":false,"fixedIn":null},{"text":"22.0.0:beta7","noFixRecorded":false,"fixedIn":null},{"text":"22.0.0:beta8","noFixRecorded":false,"fixedIn":null},{"text":"23.0.0:alpha1","noFixRecorded":false,"fixedIn":null}],"versionsText":"22.0.0 | 22.0.0:beta1 | 22.0.0:beta2 | 22.0.0:beta3 | 22.0.0:beta4 | 22.0.0:beta5 | 22.0.0:beta6 | 22.0.0:beta7 | 22.0.0:beta8 | 23.0.0:alpha1","eol":{"isEol":true,"eolDate":"2023-10-09T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"22","label":"22","eolFrom":"2023-10-09T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"22.3.27"},"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.0.0-beta.1, < 22.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 23.0.0-alpha.1, < 23.0.0-alpha.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 22.0.0-beta.1, < 22.0.1 | ≥ 23.0.0-alpha.1, < 23.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-gxh7-wv9q-fwfr","label":"github.com/electron/electron/security/advisories/GHSA-gxh7-wv9q-fwfr","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Mitigation","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23623","label":"nvd.nist.gov/vuln/detail/CVE-2023-23623","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/electron/electron/pull/36667","label":"github.com/electron/electron/pull/36667","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/electron/electron/pull/36668","label":"github.com/electron/electron/pull/36668","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/electron/electron/commit/9e7fbc7021d8d716c43782249a552e55289c35db","label":"github.com/electron/electron/commit/9e7fbc7021d8d716c43782249a552e55289c35db","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/electron/electron","label":"github.com/electron/electron","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/electron/electron/releases/tag/v22.0.1","label":"github.com/electron/electron/releases/tag/v22.0.1","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:12869-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:12869-1"]},"timeline":[{"kind":"published","date":"2023-09-06T20:16:10.381Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-26T17:48:22.057Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T19:31:02.988Z","stale":false,"partial":false}}