CVE-2026-34774: Electronjs Electron

High severity, CVSS 8.1. EPSS: 0.6% probability of exploitation activity in the next 30 days.

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 39.8.1, 40.7.0, and 41.0.0, apps that use offscreen rendering and allow child windows via window.open() may be vulnerable to a use-after-free. If the parent offscreen WebContents is destroyed while a child window remains open, subsequent paint frames on the child dereference freed memory, which may lead to a crash or memory corruption. Apps are only affected if they use offscreen rendering (webPreferences.offscreen: true) and their setWindowOpenHandler permits child windows. Apps that do not use offscreen rendering, or that deny child windows, are not affected. This issue has been patched in versions 39.8.1, 40.7.0, and 41.0.0.

What to do

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Electronjs Electron, before 39.8.1: fixed in 39.8.1
  • Electronjs Electron, from 40.0.0, before 40.7.0: fixed in 40.7.0

Affected products

  • Electronjs Electron: before 39.8.1 (fixed in 39.8.1); from 40.0.0, before 40.7.0 (fixed in 40.7.0); version 41.0.0 only

Affected packages

Published 2026-04-04. Last modified 2026-07-24.