{"id":"CVE-2026-70598","aliases":["CVE-2026-70598","GHSA-pfmc-3mgc-p6fp"],"related":[],"kind":"vulnerability","state":"published","title":"Electron: Off-screen rendering trusts GPU-supplied geometry over shared-memory size","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nIn 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.\n\nApps 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.\n\n### Workarounds\nThere are no app side workarounds, you must update to a patched version of Electron.\n\n### Fixed Versions\n* `42.0.0-beta.3`\n* `41.2.1`\n* `40.9.0`\n* `39.8.10`\n\n### For more information\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)","format":"markdown","source":"ghsa"}],"published":"2026-08-05T15:27:24.392Z","modified":"2026-10-08T13:54:22.953Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L","score":3.9,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L","score":3.9,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:N/A:L","score":3.9,"rating":"LOW"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"< 39.8.10","status":"affected"},{"version":">= 40.0.0-alpha.1, < 40.9.0","status":"affected"},{"version":">= 41.0.0-alpha.1, < 41.2.1","status":"affected"},{"version":">= 42.0.0-alpha.1, < 42.0.0-beta.3","status":"affected"}],"vendor":"electron","product":"electron","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"39.8.10"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"40.0.0-alpha.1","status":"affected","fixed":"40.9.0"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"41.0.0-alpha.1","status":"affected","fixed":"41.2.1"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"42.0.0-alpha.1","status":"affected","fixed":"42.0.0-beta.3"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"39.8.10"},{"status":"affected","introduced":"40.0.0","fixed":"40.9.0"},{"status":"affected","introduced":"41.0.0","fixed":"41.2.1"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"}],"vendor":"electronjs","product":"electron","cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-pfmc-3mgc-p6fp","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/commit/2c24640e7b0b9c74fe9f44bce0fde138340ff4fb","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-05T18:15:41.871Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-70598","url":"https://www.cve.org/CVERecord?id=CVE-2026-70598","licence":"CVE Terms of Use","modified":"2026-08-05T18:15:50.518Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pfmc-3mgc-p6fp","url":"https://github.com/advisories/GHSA-pfmc-3mgc-p6fp","licence":"CC-BY-4.0","modified":"2026-08-05T15:41:04.556Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-70598","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70598","licence":"Public domain","modified":"2026-10-08T13:54:22.953Z"}],"updatedAt":"2026-11-25T22:59:31.125Z","epss":{"score":0.00137,"percentile":0.03298,"date":"2026-12-01T12:00:22.000Z"}}