Security mailing lists by PureSourceCode

CVE-2023-23623

CRITICAL 9.8CVSS 3.1

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

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.

Published
6 Sep 2023
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-670
Also known as
GHSA-gxh7-wv9q-fwfr
Sources
NVDJSONOSV GHSA-gxh7-wv9q-fwfrJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD electronjs electron
cpe:2.3:a:electronjs:electron:22.0.0:-:*:*:*:node.js:*:*
= 22.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:22.0.0:beta1:*:*:*:node.js:*:*
= 22.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:22.0.0:beta2:*:*:*:node.js:*:*
= 22.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:22.0.0:beta3:*:*:*:node.js:*:*
= 22.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:22.0.0:beta4:*:*:*:node.js:*:*
= 22.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:22.0.0:beta5:*:*:*:node.js:*:*
= 22.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:22.0.0:beta6:*:*:*:node.js:*:*
= 22.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:22.0.0:beta7:*:*:*:node.js:*:*
= 22.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:22.0.0:beta8:*:*:*:node.js:*:*
= 22.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:23.0.0:alpha1:*:*:*:node.js:*:*
= 23.0.0
OSV npm electron >= 22.0.0-beta.1, < 22.0.1 22.0.1
OSV npm electron >= 23.0.0-alpha.1, < 23.0.0-alpha.2 23.0.0-alpha.2

References

History

  • 25 Nov 2026 20:36 UTC · NVD: first stored (published 6 Sep 2023)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Sep 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.