Read the docs
TI-2026-27018 Aliases CVE-2026-34774GHSA-532v-xpq5-8h95

Electron: Use-after-free in offscreen child window paint callback

Priority LOW 38CWE-416Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 2 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-416 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00452 39th percentileScored 2026-11-07
Fix Partial electron (electron): 39.8.1, 40.7.0, 41.0.0electron (npm): 39.8.1, 40.7.0, 41.0.0Red Hat: 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
electronelectronbefore 39.8.1; 40.0.0-alpha.1 to before 40.7.0; 41.0.0-alpha.1 to before 41.0.039.8.1, 40.7.0, 41.0.0Patch availableCNA
—electron (npm)before 39.8.139.8.1Patch availableGHSA-532v-xpq5-8h95
—electron (npm)40.0.0-alpha.1 to before 40.7.040.7.0Patch availableGHSA-532v-xpq5-8h95
—electron (npm)41.0.0-alpha.1 to before 41.0.041.0.0Patch availableGHSA-532v-xpq5-8h95
  • electron Vendorelectron Affected before 39.8.1; 40.0.0-alpha.1 to before 40.7.0; 41.0.0-alpha.1 to before 41.0.0 Fixed in 39.8.1, 40.7.0, 41.0.0 Patch available CNA
  • electron (npm) Vendor— Affected before 39.8.1 Fixed in 39.8.1 Patch available GHSA-532v-xpq5-8h95
  • electron (npm) Vendor— Affected 40.0.0-alpha.1 to before 40.7.0 Fixed in 40.7.0 Patch available GHSA-532v-xpq5-8h95
  • electron (npm) Vendor— Affected 41.0.0-alpha.1 to before 41.0.0 Fixed in 41.0.0 Patch available GHSA-532v-xpq5-8h95

CPE configurations NVD · 15

CPEVersionsRoleVendor
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*before 39.8.1; 40.0.0 to before 40.7.0VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:alpha1:*:*:*:node.js:*:*41.0.0 alpha1VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:alpha2:*:*:*:node.js:*:*41.0.0 alpha2VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:alpha3:*:*:*:node.js:*:*41.0.0 alpha3VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:alpha4:*:*:*:node.js:*:*41.0.0 alpha4VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:alpha5:*:*:*:node.js:*:*41.0.0 alpha5VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:alpha6:*:*:*:node.js:*:*41.0.0 alpha6VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:beta1:*:*:*:node.js:*:*41.0.0 beta1VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:beta2:*:*:*:node.js:*:*41.0.0 beta2VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:beta3:*:*:*:node.js:*:*41.0.0 beta3VulnerableElectronjs
  • cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* Versions before 39.8.1; 40.0.0 to before 40.7.0 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:alpha1:*:*:*:node.js:*:* Versions 41.0.0 alpha1 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:alpha2:*:*:*:node.js:*:* Versions 41.0.0 alpha2 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:alpha3:*:*:*:node.js:*:* Versions 41.0.0 alpha3 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:alpha4:*:*:*:node.js:*:* Versions 41.0.0 alpha4 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:alpha5:*:*:*:node.js:*:* Versions 41.0.0 alpha5 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:alpha6:*:*:*:node.js:*:* Versions 41.0.0 alpha6 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:beta1:*:*:*:node.js:*:* Versions 41.0.0 beta1 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:beta2:*:*:*:node.js:*:* Versions 41.0.0 beta2 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:beta3:*:*:*:node.js:*:* Versions 41.0.0 beta3 Vulnerable ·Electronjs
Show 5 more CPE
CPEVersionsRoleVendor
cpe:2.3:a:electronjs:electron:41.0.0:beta4:*:*:*:node.js:*:*41.0.0 beta4VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:beta5:*:*:*:node.js:*:*41.0.0 beta5VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:beta6:*:*:*:node.js:*:*41.0.0 beta6VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:beta7:*:*:*:node.js:*:*41.0.0 beta7VulnerableElectronjs
cpe:2.3:a:electronjs:electron:41.0.0:beta8:*:*:*:node.js:*:*41.0.0 beta8VulnerableElectronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:beta4:*:*:*:node.js:*:* Versions 41.0.0 beta4 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:beta5:*:*:*:node.js:*:* Versions 41.0.0 beta5 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:beta6:*:*:*:node.js:*:* Versions 41.0.0 beta6 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:beta7:*:*:*:node.js:*:* Versions 41.0.0 beta7 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:41.0.0:beta8:*:*:*:node.js:*:* Versions 41.0.0 beta8 Vulnerable ·Electronjs

Remediation

  • Fix · CNA electron (electron) Fixed in 39.8.1, 40.7.0, 41.0.0
  • Fix · GHSA-532v-xpq5-8h95 electron (npm) Fixed in 39.8.1 Advisory →
  • Fix · GHSA-532v-xpq5-8h95 electron (npm) Fixed in 40.7.0 Advisory →
  • Fix · GHSA-532v-xpq5-8h95 electron (npm) Fixed in 41.0.0 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Build of Podman DesktopAffectedNo fix yet
Red Hat Build of Podman Desktop - Tech PreviewAffectedNo fix yet

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-34774
  2. 2026-10-03 Alias added: GHSA-532v-xpq5-8h95

References

  • TI-2026-39496 Information disclosure in electron-builder CVSS 4.0HIGH 8.2
  • TI-2024-26621 Code Signing Bypass on Windows in electron-updater < 6.3.0-alpha.6 CVSS 3.1HIGH 7.5
  • TI-2023-09452 Content-Secrity-Policy disabling eval not applied consistently in renderers with sandbox disabled in Electron CVSS 3.1CRITICAL 9.8
  • TI-2026-39157 Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow CVSS 4.0CRITICAL 9.3
  • TI-2017-09308 GitHub Electron before 1.6.8 allows remote command execution because of a nodeIntegration… CVSS 3.0HIGH 8.1
  • TI-2022-11788 Exposure of Resource to Wrong Sphere in Electron CVSS 3.1CRITICAL 9.8
See all 74 →

Sources