# CVE-2026-34774: Electron: Use-after-free in offscreen child window paint callback

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 39.8.1, 40.7.0, 41.0.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-04-03 · Modified: 2026-07-15
- Aliases: GHSA-532v-xpq5-8h95
- Record: https://cvemate.com/vulnerability/CVE-2026-34774 · JSON: https://cvemate.com/vulnerability/CVE-2026-34774/json

## 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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.49%, percentile 43.766%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- electron electron: \< 39.8.1 \| ≥ 40.0.0-alpha.1, \< 40.7.0 \| ≥ 41.0.0-alpha.1, \< 41.0.0
- electronjs electron: \< 39.8.1 \| ≥ 40.0.0, \< 40.7.0 \| 41.0.0:alpha1 \| 41.0.0:alpha2 \| 41.0.0:alpha3 \| 41.0.0:alpha4 \| 41.0.0:alpha5 \| 41.0.0:alpha6 \| 41.0.0:beta1 \| 41.0.0:beta2 \| 41.0.0:beta3 \| 41.0.0:beta4 \| 41.0.0:beta5 \| 41.0.0:beta6 \| 41.0.0:beta7 \| 41.0.0:beta8
- Npm electron (Npm): \< 39.8.1 \| ≥ 40.0.0-alpha.1, \< 40.7.0 \| ≥ 41.0.0-alpha.1, \< 41.0.0

## References

- <https://github.com/electron/electron/security/advisories/GHSA-532v-xpq5-8h95>
- <https://access.redhat.com/security/cve/CVE-2026-34774>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2455026>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34774.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34774>
- <https://github.com/electron/electron>

---

Data as of 2026-12-05T09:39:38.717Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
