
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-34770 is a use-after-free (UAF) vulnerability in Electron's powerMonitor module affecting Windows and macOS platforms. After the native PowerMonitor object is garbage-collected, associated OS-level resources — a message window on Windows and a shutdown handler on macOS — retain dangling references. A subsequent session-change event (Windows) or system shutdown (macOS) then dereferences the freed memory, potentially causing a crash or memory corruption. Affected versions include all Electron releases before 38.8.6, 39.x before 39.8.1, 40.x before 40.8.0, and 41.0.0 pre-releases before 41.0.0-beta.8. The vulnerability was published on April 2–3, 2026, with a CVSS v3.1 score of 7.0 (High) (GitHub Advisory, Github Advisory).
The root cause is classified as CWE-416 (Use After Free): when the JavaScript garbage collector reclaims the native PowerMonitor object, the underlying OS-level handles are not properly cleaned up, leaving dangling pointers. On Windows, a hidden message window used to receive power/session-change notifications persists after the object is freed; on macOS, a system shutdown notification handler similarly retains a stale reference. When the OS subsequently delivers a session-change or shutdown event, the callback dereferences the freed memory region. The vulnerability is not directly renderer-controllable, meaning it cannot be triggered purely from web content without involvement of the main process (GitHub Advisory, Github Advisory).
Successful exploitation can result in application crashes or memory corruption in Electron-based applications that subscribe to powerMonitor events such as suspend, resume, and lock-screen. Memory corruption could theoretically be leveraged for arbitrary code execution within the application's process context, with potential high impact on confidentiality, integrity, and availability. The vulnerability requires user interaction (e.g., a session-change event or system shutdown) and is scoped to the affected application process without scope change (GitHub Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.017% (4th percentile), indicating a low near-term probability of exploitation. Exploitation requires high attack complexity (local access, specific timing around garbage collection and OS event delivery) and user interaction, further limiting practical exploitability.
Electron has released patched versions addressing this vulnerability: 38.8.6, 39.8.1, 40.8.0, and 41.0.0-beta.8. There are no application-side workarounds available — upgrading to a patched version is the only remediation. Organizations should audit their Electron-based application dependencies and prioritize updating to the appropriate fixed branch as soon as possible (GitHub Advisory, Github Advisory).
The advisory was published by Electron maintainer VerteDinde on April 2, 2026, and subsequently reviewed and added to the GitHub Advisory Database on April 3, 2026. IBM issued a security bulletin noting that MongoDB Enterprise Advanced (with IBM) is also affected by this CVE among others, indicating downstream impact on enterprise software stacks (IBM Bulletin). No significant broader community controversy or notable researcher commentary has been identified beyond standard vulnerability tracking.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."