Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-34778— Electron: Service worker can spoof executeJavaScript IPC replies

Quick assessment

Affected
electron electron
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Electron是Electron开源的一个用户编写跨平台桌面应用的 JavaScript 框架。该框架基于 nodejs 和 Chromium 可以使用HTML,CSS实现跨平台桌面应用的编写。 Electron 38.8.6之前版本、39.8.1之前版本、40.8.1之前版本和41.0.0之前版本存在数据伪造问题漏洞,该漏洞源于会话中运行的服务工作线程可能欺骗webContents.executeJavaScript及相关方法使用的内部IPC通道上的回复消息,可能导致主进程承诺解析为攻击者控制的数据。

CVSS 5.9 · Medium EPSS 0.14% · P3
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-34778

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Electron: Service worker can spoof executeJavaScript IPC replies
Source: CVE Program / CVE List V5
Vulnerability Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 38.8.6, 39.8.1, 40.8.1, and 41.0.0, a service worker running in a session could spoof reply messages on the internal IPC channel used by webContents.executeJavaScript() and related methods, causing the main-process promise to resolve with attacker-controlled data. Apps are only affected if they have service workers registered and use the result of webContents.executeJavaScript() (or webFrameMain.executeJavaScript()) in security-sensitive decisions. This issue has been patched in versions 38.8.6, 39.8.1, 40.8.1, and 41.0.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
使用欺骗进行的认证绕过
Source: CVE Program / CVE List V5
Vulnerability Title
Electron 数据伪造问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Electron是Electron开源的一个用户编写跨平台桌面应用的 JavaScript 框架。该框架基于 nodejs 和 Chromium 可以使用HTML,CSS实现跨平台桌面应用的编写。 Electron 38.8.6之前版本、39.8.1之前版本、40.8.1之前版本和41.0.0之前版本存在数据伪造问题漏洞,该漏洞源于会话中运行的服务工作线程可能欺骗webContents.executeJavaScript及相关方法使用的内部IPC通道上的回复消息,可能导致主进程承诺解析为攻击者控制的数据。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
electron electron < 38.8.6 -

II. Public POCs for CVE-2026-34778

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-34778

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-34778 (1)

Same Patch Batch · electron · 2026-04-03 · 13 CVEs total

CVE-2026-34774 8.1 HIGH Electron: Use-after-free in offscreen child window paint callback
CVE-2026-34769 7.8 HIGH Electron: Renderer command-line switch injection via undocumented commandLineSwitches webP
CVE-2026-34771 7.5 HIGH Electron: Use-after-free in WebContents fullscreen, pointer-lock, and keyboard-lock permis
CVE-2026-34770 7.0 HIGH Electron: Use-after-free in PowerMonitor on Windows and macOS
CVE-2026-34775 6.8 MEDIUM Electron: nodeIntegrationInWorker not correctly scoped in shared renderer processes
CVE-2026-34767 5.9 MEDIUM Electron: HTTP Response Header Injection in custom protocol handlers and webRequest
CVE-2026-34772 5.8 MEDIUM Electron: Use-after-free in download save dialog callback
CVE-2026-34777 5.4 MEDIUM Electron: Incorrect origin passed to permission request handler for iframe requests
CVE-2026-34776 5.3 MEDIUM Electron: Out-of-bounds read in second-instance IPC on macOS and Linux
CVE-2026-34773 4.7 MEDIUM Electron: Registry key path injection in app.setAsDefaultProtocolClient on Windows
CVE-2026-34768 3.9 LOW Electron: Unquoted executable path in app.setLoginItemSettings on Windows
CVE-2026-34766 3.3 LOW Electron: USB device selection not validated against filtered device list

IV. Related Vulnerabilities

V. Comments for CVE-2026-34778

No comments yet


Leave a comment