Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electron
  4. ›
  5. CVE-2026-34764

CVE-2026-34764: Electron: Use-after-free in offscreen shared texture release() callback

April 3, 2026 (updated April 6, 2026)

Apps that use offscreen rendering with GPU shared textures may be vulnerable to a use-after-free. Under certain conditions, the release() callback provided on a paint event texture can outlive its backing native state, and invoking it after that point dereferences freed memory in the main process, which may lead to a crash or memory corruption.

Apps are only affected if they use offscreen rendering with webPreferences.offscreen: { useSharedTexture: true }. Apps that do not enable shared-texture offscreen rendering are not affected.

References

  • github.com/advisories/GHSA-8x5q-pvf5-64mp
  • github.com/electron/electron
  • github.com/electron/electron/security/advisories/GHSA-8x5q-pvf5-64mp
  • nvd.nist.gov/vuln/detail/CVE-2026-34764

Code Behaviors & Features

Detect and mitigate CVE-2026-34764 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 33.0.0-alpha.1 before 39.8.5, all versions starting from 40.0.0-alpha.1 before 40.8.5, all versions starting from 41.0.0-alpha.1 before 41.1.0, all versions starting from 42.0.0-alpha.1 before 42.0.0-alpha.5

Fixed versions

  • 39.8.5
  • 40.8.5
  • 41.1.0
  • 42.0.0-alpha.5

Solution

Upgrade to versions 39.8.5, 40.8.5, 41.1.0, 42.0.0-alpha.5 or above.

Impact 2.3 LOW

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-416: Use After Free

Source file

npm/electron/CVE-2026-34764.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:43 +0000.