Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electron
  4. ›
  5. CVE-2026-34770

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

April 3, 2026 (updated April 6, 2026)

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.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2026-34770 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 38.8.6, all versions starting from 39.0.0-alpha.1 before 39.8.1, all versions starting from 40.0.0-alpha.1 before 40.8.0, all versions starting from 41.0.0-alpha.1 before 41.0.0-beta.8

Fixed versions

  • 38.8.6
  • 39.8.1
  • 40.8.0
  • 41.0.0-beta.8

Solution

Upgrade to versions 38.8.6, 39.8.1, 40.8.0, 41.0.0-beta.8 or above.

Impact 7 HIGH

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-416: Use After Free

Source file

npm/electron/CVE-2026-34770.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:17:41 +0000.