CVE-2026-70598
JSON

3.9low

Electron: Off-screen rendering trusts GPU-supplied geometry over shared-memory size

Severity
3.9low CVSS:3.1 by GitHub_M
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-pfmc-3mgc-p6fp

Description

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.10, 40.9.0, 41.2.1, and 42.0.0-beta.3, offscreen rendering frame data received from the GPU process was not fully validated by the main process. A compromised GPU process could cause the main process to read out-of-bounds memory while producing paint event images, disclosing memory or crashing the app. This issue is fixed in 39.8.10, 40.9.0, 41.2.1, and 42.0.0-beta.3.

Affected

Product or packageVersionsReported by
electron electron< 39.8.10, >= 40.0.0-alpha.1, < 40.9.0, >= 41.0.0-alpha.1, < 41.2.1, >= 42.0.0-alpha.1, < 42.0.0-beta.3CVE List
electron (npm)before 39.8.10, from 40.0.0-alpha.1 before 40.9.0, from 41.0.0-alpha.1 before 41.2.1, from 42.0.0-alpha.1 before 42.0.0-beta.3GitHub Advisory Database
electronjs electronbefore 39.8.10, from 40.0.0 before 40.9.0, from 41.0.0 before 41.2.1, 42.0.0NVD

All scores

GitHub_M3.9low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L
GitHub3.9low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.10, 40.9.0, 41.2.1, and 42.0.0-beta.3, offscreen rendering frame data received from the GPU process was not fully validated by the main process. A compromised GPU process could cause the main process to read out-of-bounds memory while producing paint event images, disclosing memory or crashing the app. This issue is fixed in 39.8.10, 40.9.0, 41.2.1, and 42.0.0-beta.3.

GitHub Advisory Database
Impact

In offscreen rendering mode, frame data received from the GPU process was not fully validated by the main process. A compromised GPU process could cause the main process to read out-of-bounds memory while producing paint event images, disclosing memory or crashing the app.

Apps are only affected if they use offscreen rendering (webPreferences.offscreen) and an attacker has separately gained code execution in the GPU process. Apps that do not use offscreen rendering are not affected.

Workarounds

There are no app side workarounds, you must update to a patched version of Electron.

Fixed Versions
  • 42.0.0-beta.3
  • 41.2.1
  • 40.9.0
  • 39.8.10
For more information

If you have any questions or comments about this advisory, email us at security@electronjs.org

References

Sources

SourceRecordLicence
CVE ListCVE-2026-70598 changed 2026-08-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-pfmc-3mgc-p6fp changed 2026-08-05CC-BY-4.0
NVDCVE-2026-70598 changed 2026-10-08Public domain