{"id":"CVE-2026-34770","published":"2026-04-03T23:46:11Z","modified":"2026-04-08T03:55:36Z","title":"Electron: Use-after-free in PowerMonitor on Windows and macOS","vendor":"electron","product":"electron","tier":"tail","description":{"text":"Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 38.8.6, 39.8.1, 40.8.0, and 41.0.0-beta.8, apps that use the powerMonitor module may be vulnerable to a use-after-free. After the native PowerMonitor object is garbage-collected, the associated OS-level resources (a message window on Windows, a shutdown handler on macOS) retain dangling references. A subsequent session-change event (Windows) or system shutdown (macOS) dereferences freed memory, which may lead to a crash or memory corruption. All apps that access powerMonitor events (suspend, resume, lock-screen, etc.) are potentially affected. The issue is not directly renderer-controllable. This issue has been patched in versions 38.8.6, 39.8.1, 40.8.0, and 41.0.0-beta.8.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00255,"percentile":0.17389,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-jjp3-mq3x-295m","tags":["x_refsource_CONFIRM"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":3.48},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":["< 38.8.6",">= 39.0.0-alpha.1, < 39.8.1",">= 40.0.0-alpha.1, < 40.8.0",">= 41.0.0-alpha.1, < 41.0.0-beta.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-07T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":["<38.8.6",">=39.0.0-alpha.1, <39.8.1",">=40.0.0-alpha.1, <40.8.0",">=41.0.0-alpha.1, <41.0.0-beta.8"],"patched":["38.8.6","39.8.1","40.8.0","41.0.0-beta.8"],"from":["GHSA-jjp3-mq3x-295m"],"provenance":"source"}],"summary":{"text":"Electron's powerMonitor module, on Windows and macOS, contains a use-after-free flaw: after the native PowerMonitor object is garbage-collected, its OS-level resources (a message window on Windows, a shutdown handler on macOS) keep dangling references. An attacker with local access would need the affected app to be running, and user interaction would be required to trigger the relevant session-change or shutdown event, which could cause a crash or memory corruption in any app using powerMonitor events.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:09Z"},"euvd":{"id":"EUVD-2026-18939","exploited":false,"provenance":"source"}}