{"cve":"CVE-2023-23623","nvd":{"published":"2023-09-06T21:15:08.977","modified":"2026-06-17T05:37:36.563","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-670"],"references":["https://github.com/electron/electron/security/advisories/GHSA-gxh7-wv9q-fwfr","https://github.com/electron/electron/security/advisories/GHSA-gxh7-wv9q-fwfr"],"products":["electronjs:electron"],"source":"nvd","synced_at":"2026-10-19T21:39:24.235896374+00:00"},"epss":{"cve":"CVE-2023-23623","score":0.00664,"percentile":0.51777,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gxh7-wv9q-fwfr","url":"https://osv.dev/vulnerability/GHSA-gxh7-wv9q-fwfr","summary":"Electron's Content-Secrity-Policy disabling eval not applied consistently in renderers with sandbox disabled","modified":"2023-11-08T04:11:41.612026Z","packages":[{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=22.0.0-beta.1 <22.0.1"],"fixed":["22.0.1"]},{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=23.0.0-alpha.1 <23.0.0-alpha.2"],"fixed":["23.0.0-alpha.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}