Service Worker Spoofing Vulnerability in Electron Framework by GitHub
CVE-2026-34778
What is CVE-2026-34778?
The Electron framework, which supports the development of cross-platform desktop applications using JavaScript, HTML, and CSS, contains a service worker spoofing vulnerability that affects applications utilizing registered service workers. Prior to the fixes in versions 38.8.6, 39.8.1, 40.8.1, and 41.0.0, an attacker could exploit this vulnerability to manipulate the internal IPC channel, specifically through the use of webContents.executeJavaScript() and related methods, leading to the resolution of main-process promises with potentially malicious data. This can compromise security-sensitive decisions within affected applications, making it crucial for developers to update to the patched versions to mitigate this risk.
Affected Version(s)
electron < 38.8.6 < 38.8.6
electron >= 39.0.0-alpha.1, < 39.8.1 < 39.0.0-alpha.1, 39.8.1
electron >= 40.0.0-alpha.1, < 40.8.1 < 40.0.0-alpha.1, 40.8.1
