# CVE-2026-34770: Electron: Use-after-free in PowerMonitor on Windows and macOS

- Priority: **Routine**
- Reason: Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-03 · Modified: 2026-04-08
- Aliases: GHSA-jjp3-mq3x-295m
- Record: https://cvemate.com/vulnerability/CVE-2026-34770 · JSON: https://cvemate.com/vulnerability/CVE-2026-34770/json

## 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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.277%, percentile 21.52%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- electron electron: \< 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
- electronjs electron: \< 38.8.6 \| ≥ 39.0.0, \< 39.8.1 \| ≥ 40.0.0, \< 40.8.0 \| 41.0.0:alpha1 \| 41.0.0:alpha2 \| 41.0.0:alpha3 \| 41.0.0:alpha4 \| 41.0.0:alpha5 \| 41.0.0:alpha6 \| 41.0.0:beta1 \| 41.0.0:beta2 \| 41.0.0:beta3 \| 41.0.0:beta4 \| 41.0.0:beta5 \| 41.0.0:beta6 \| 41.0.0:beta7
- Npm electron (Npm): \< 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

## References

- <https://github.com/electron/electron/security/advisories/GHSA-jjp3-mq3x-295m>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34770>
- <https://github.com/electron/electron>

---

Data as of 2026-12-05T11:26:16.261Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
