{"id":"CVE-2026-34778","published":"2026-04-03T23:59:07Z","modified":"2026-04-06T15:50:49Z","title":"Electron: Service worker can spoof executeJavaScript IPC replies","vendor":"electron","product":"electron","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00132,"percentile":0.02825,"provenance":"source"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"},{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-xj5x-m3f3-5x3h","tags":["x_refsource_CONFIRM"]}],"priority":{"score":4.7,"factors":[{"name":"EPSS percentile","points":0.57},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":["< 38.8.6",">= 39.0.0-alpha.1, < 39.8.1",">= 40.0.0-alpha.1, < 40.8.1",">= 41.0.0-alpha.1, < 41.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-06T15:50:39.913943Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":["<38.8.6",">=39.0.0-alpha.1, <39.8.1",">=40.0.0-alpha.1, <40.8.1",">=41.0.0-alpha.1, <41.0.0"],"patched":["38.8.6","39.8.1","40.8.1","41.0.0"],"from":["GHSA-xj5x-m3f3-5x3h"],"provenance":"source"}],"summary":{"text":"The flaw lies in Electron, the cross-platform desktop application framework, where a service worker running in a session can 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. An attacker able to run a service worker in the affected session can exploit this only in applications that have service workers registered and that make security-sensitive decisions based on the result of webContents.executeJavaScript() or webFrameMain.executeJavaScript().","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:43Z"},"euvd":{"id":"EUVD-2026-18955","exploited":false,"provenance":"source"}}