# CVE-2023-23623: Content-Secrity-Policy disabling eval not applied consistently in renderers with sandbox disabled in Electron

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.66%, higher than 53% of CVEs (2026-12-01)
- Published: 2023-09-06T18:42:17.000Z
- Modified: 2026-06-17T05:37:36.563Z
- Also known as: GHSA-gxh7-wv9q-fwfr
- Weaknesses: CWE-670
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- electron electron: >= 22.0.0-beta.1, < 22.0.1; >= 23.0.0-alpha.1, < 23.0.0-alpha.2
- atom electron: from 22.0.0_beta.1 before 22.0.1; from 23.0.0_alpha.1 before 23.0.0_alpha.2
- electron (npm): from 22.0.0-beta.1 before 22.0.1; from 23.0.0-alpha.1 before 23.0.0-alpha.2
- electronjs electron: 22.0.0; 23.0.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/electron/electron/security/advisories/GHSA-gxh7-wv9q-fwfr> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-23623> (advisory)
- <https://github.com/electron/electron/pull/36667> (web)
- <https://github.com/electron/electron/pull/36668> (web)
- <https://github.com/electron/electron/commit/9e7fbc7021d8d716c43782249a552e55289c35db> (web)
- <https://github.com/electron/electron> (package)
- <https://github.com/electron/electron/releases/tag/v22.0.1> (web)

## Sources

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

---

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