{"id":"CVE-2026-34774","published":"2026-04-03T23:52:38Z","modified":"2026-07-15T01:03:48Z","title":"Electron: Use-after-free in offscreen child window paint callback","vendor":"electron","product":"electron","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00462,"percentile":0.40971,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-825","name":"Expired Pointer Dereference"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-532v-xpq5-8h95","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34774","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2455026","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34774.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":8.19},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":["< 39.8.1",">= 40.0.0-alpha.1, < 40.7.0",">= 41.0.0-alpha.1, < 41.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-07T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":["<39.8.1",">=40.0.0-alpha.1, <40.7.0",">=41.0.0-alpha.1, <41.0.0"],"patched":["39.8.1","40.7.0","41.0.0"],"from":["GHSA-532v-xpq5-8h95"],"provenance":"source"}],"summary":{"text":"Electron, the cross-platform desktop application framework, contains a use-after-free flaw in its offscreen child window paint callback. An attacker who can influence an affected app that uses offscreen rendering and permits child windows via window.open() can trigger paint frames on a child window after its parent offscreen WebContents has been destroyed, which may crash the application or corrupt memory, though the attack is conditioned on that specific app configuration and on the attacker being able to create the destruction-while-open state.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:04Z"},"euvd":{"id":"EUVD-2026-18947","exploited":false,"provenance":"source"}}