CVE-2023-23623: electron
Vulnerability summary
CVE-2023-23623 is a critical (CVSS 9.8) vulnerability in electron. EPSS estimates a 0.66% chance of exploitation in the next 30 days, higher than 51.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 06-09-2023PublishedVulnerability first disclosed.
- 26-09-2024Last modifiedVulnerability information updated.
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 metrics
3 scores · 3 sources · 1 version- CVE.orgCNA7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.66%
Chance of exploitation in the next 30 days
Percentile
51%
Versus all other CVEs
30-day change
0.00 pp
From 0.66% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Electron1 product
- electron≥ 22.0.0-beta.1, < 22.0.1 | ≥ 23.0.0-alpha.1, < 23.0.0-alpha.2
Electronjs1 product
- electronEOL22.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
Npm1 product
- electron≥ 22.0.0-beta.1, < 22.0.1 | ≥ 23.0.0-alpha.1, < 23.0.0-alpha.2
3 vendors · 3 products
References
7 links- github.com/electron/electron/security/advisories/GHSA-gxh7-wv9q-fwfrX Refsource CONFIRMWEBMitigationVendor Advisory
- github.com/electron/electronPACKAGE