Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-23623

HIGH 7.5EPSS 55%

Content-Secrity-Policy disabling eval not applied consistently in renderers with sandbox disabled in Electron

Also known as GHSA-gxh7-wv9q-fwfr

Mitigation

  • Upgrade electron to one of 22.0.1, 23.0.0-alpha.2 (or later in the same release line).

Who should check

  • Projects that depend on npm package electron (>= 22.0.0-beta.1, < 22.0.1)
  • Anyone running electron >= 22.0.0-beta.1, < 22.0.1; >= 23.0.0-alpha.1, < 23.0.0-alpha.2

Vulnerability facts

Affected
electron >= 22.0.0-beta.1, < 22.0.1
Fixed in
22.0.1, 23.0.0-alpha.2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.83% chance of exploitation in 30 days (percentile 55, 2026-11-26)
CWE
CWE-670
Published
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.

Affected and fixed versions

Package / productAffectedFixedSource
npm electron>= 22.0.0-beta.1, < 22.0.122.0.1, 23.0.0-alpha.2osv
electron>= 22.0.0-beta.1, < 22.0.1; >= 23.0.0-alpha.1, < 23.0.0-alpha.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-23623. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-23623.md
Affected: electron >= 22.0.0-beta.1, < 22.0.1
Fixed in: 22.0.1, 23.0.0-alpha.2

Steps:
1. Search this machine and project for electron (npm), electron: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-23623 being exploited?

There is no confirmed exploitation: CVE-2023-23623 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.83% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-23623?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2023-23623?

electron >= 22.0.0-beta.1, < 22.0.1.

Is there a fix for CVE-2023-23623?

Yes. Fixed in 22.0.1, 23.0.0-alpha.2. Upgrade electron to one of 22.0.1, 23.0.0-alpha.2 (or later in the same release line).

How do I check if I'm affected by CVE-2023-23623?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors