CVE-2026-34764: 
JavaScript vulnerability analysis and mitigation

Overview

CVE-2026-34764 is a use-after-free vulnerability in the Electron framework affecting offscreen rendering with GPU shared textures. The release() callback provided on a paint event texture can outlive its backing native state; invoking it after that point dereferences freed memory in the main process, potentially causing a crash or memory corruption. Affected versions span from 33.0.0-alpha.1 through multiple release lines up to (but not including) the patched versions. It was published on April 3, 2026, with NVD publication on April 6, 2026. The CVSS v3.1 base score is 2.3 (Low) per the GitHub Security Advisory, though Feedly's NVD-sourced data assigns a score of 5.5 (Medium) (Github Advisory, Electron Advisory).

Technical details

The root cause is classified as CWE-416 (Use After Free) and CWE-825 (Expired Pointer Dereference). When an Electron application uses offscreen rendering with webPreferences.offscreen: { useSharedTexture: true }, the release() callback attached to a GPU-shared texture on a paint event can be invoked after the underlying native GPU texture state has already been freed. This results in a dereference of freed memory within the main process. Exploitation requires local access with high privileges and is limited strictly to applications that have explicitly enabled the useSharedTexture offscreen rendering mode (Github Advisory, Electron Advisory).

Impact

Successful exploitation can cause the Electron main process to crash or suffer memory corruption, resulting in a denial of service for the affected application. There is no confidentiality or integrity impact identified — the primary consequence is availability loss. The vulnerability is scoped to the affected application process and does not enable lateral movement or data exfiltration based on current analysis (Github Advisory, Red Hat Bugzilla).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for this vulnerability. The EPSS score is approximately 0.018% (0.000140), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access with high privileges and is constrained to a specific, non-default Electron configuration, significantly limiting its attack surface (Github Advisory).

Mitigation and workarounds

Electron has released fixed versions: 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5. Applications running versions from 33.0.0-alpha.1 through the affected ranges should upgrade to the appropriate patched release. As an interim workaround, developers should ensure texture.release() is called promptly after the texture has been consumed and before the texture object becomes unreachable, preventing the use-after-free condition. Applications that do not use webPreferences.offscreen: { useSharedTexture: true } are not affected and require no action (Electron Advisory, Github Advisory).

Community reactions

The vulnerability was credited to researcher daffainfo and published by the Electron security team (MarshallOfSound) on April 3, 2026. Red Hat tracked the issue via Bugzilla (Bug 2455466) and classified it as low severity. No significant broader media coverage or notable community discussion has been identified beyond standard vulnerability database entries (Electron Advisory, Red Hat Bugzilla).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Unknown

Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-gvwc-5hr5-44p8HIGH7.5
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-5jh3-w3fj-6758LOW3.7
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-5v8x-rm7w-m4c7LOW3.7
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-7pqp-3q23-mwr8LOW3.7
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026
GHSA-3qg4-7mq2-gm93MEDIUMN/A
  • JavaScript logoJavaScript
  • probe-image-size
NoYesOct 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management