Security mailing lists by PureSourceCode

CVE-2026-34774

HIGH 8.1CVSS 3.1

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

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.

Published
4 Apr 2026
Last modified
24 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-416CWE-825
Also known as
GHSA-532v-xpq5-8h95
Sources
NVDJSONOSV GHSA-532v-xpq5-8h95JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD electronjs electron
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*
< 39.8.1 39.8.1
NVD electronjs electron
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*
>= 40.0.0, < 40.7.0 40.7.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:alpha1:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:alpha2:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:alpha3:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:alpha4:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:alpha5:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:alpha6:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:beta1:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:beta2:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:beta3:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:beta4:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:beta5:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:beta6:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:beta7:*:*:*:node.js:*:*
= 41.0.0
NVD electronjs electron
cpe:2.3:a:electronjs:electron:41.0.0:beta8:*:*:*:node.js:*:*
= 41.0.0
OSV npm electron < 39.8.1 39.8.1
OSV npm electron >= 40.0.0-alpha.1, < 40.7.0 40.7.0
OSV npm electron >= 41.0.0-alpha.1, < 41.0.0 41.0.0

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 4 Apr 2026)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.