
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-34778 is a moderate-severity vulnerability in the Electron framework titled "Service worker can spoof executeJavaScript IPC replies." A service worker running within an Electron session can spoof reply messages on the internal IPC channel used by webContents.executeJavaScript() and webFrameMain.executeJavaScript(), causing the main-process promise to resolve with attacker-controlled data. Affected versions include all Electron releases below 38.8.6, 39.x before 39.8.1, 40.x before 40.8.1, and 41.x pre-release builds before 41.0.0. The advisory was published on April 2, 2026, by VerteDinde and assigned CVE-2026-34778 on April 4, 2026. The CVSS v3.1 base score is 5.9 (Moderate) (GitHub Advisory, Electron Advisory).
The root cause is classified under CWE-290 (Authentication Bypass by Spoofing) and CWE-345 (Insufficient Verification of Data Authenticity): Electron's internal IPC channel does not sufficiently verify the origin or authenticity of reply messages, allowing a service worker to inject forged responses. When webContents.executeJavaScript() or webFrameMain.executeJavaScript() is called, the main process awaits a reply on this IPC channel; a malicious service worker registered in the same session can race to send a crafted reply, causing the resolved promise value to be attacker-controlled rather than the actual JavaScript execution result. Exploitation requires the attacker to have a service worker registered in the target session and the application to use the return value of these methods for security-sensitive logic. No public proof-of-concept code has been identified at this time (GitHub Advisory, Electron Advisory).
The primary impact is a high integrity compromise: an attacker can cause the Electron main process to act on falsified data returned from executeJavaScript() calls, potentially bypassing security checks, authentication logic, or other decisions that rely on the return value. Confidentiality impact is low, as the attacker may also observe some data through the spoofed channel. Availability is not affected. Only applications that both register service workers and use executeJavaScript() results for security-sensitive decisions are at risk; apps that do not rely on these return values for trust decisions are unaffected (GitHub Advisory, Electron Advisory).
No public exploit code or in-the-wild exploitation has been reported for CVE-2026-34778. The EPSS score is approximately 0.007% (1st percentile), 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 low privileges (an authenticated session with a registered service worker) and high attack complexity, limiting the practical attack surface (GitHub Advisory).
webContents.executeJavaScript() or webFrameMain.executeJavaScript() and acts on the returned promise value for security decisions (e.g., authentication checks, permission grants).executeJavaScript() request over the internal IPC channel, the malicious service worker intercepts or races to send a crafted reply message with attacker-controlled data before the legitimate renderer responds.Electron has released patched versions: 38.8.6, 39.8.1, 40.8.1, and 41.0.0. Developers should upgrade to one of these versions as the primary remediation. As an immediate workaround, applications should not use the return value of webContents.executeJavaScript() or webFrameMain.executeJavaScript() for any security-sensitive decisions; instead, use dedicated, validated IPC channels (e.g., ipcMain/ipcRenderer with explicit message validation) for security-relevant communication with renderer processes. Questions can be directed to security@electronjs.org (GitHub Advisory, Electron Advisory).
The advisory was published by Electron maintainer VerteDinde on April 2, 2026, and reviewed by the GitHub Advisory Database on April 3, 2026. IBM published a security bulletin in May 2026 noting that MongoDB Enterprise Advanced (with IBM) is also affected by this CVE among others (IBM Bulletin). No significant broader media coverage or notable researcher commentary beyond the official advisory has been identified.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."