CVE Tools

CVE-2026-34778

Electron: Service worker can spoof executeJavaScript IPC replies

Published: Apr 3, 2026Updated: Apr 20, 2026 Sources: CVE List NVDCWE-290
5.9CVSSMEDIUM

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.

CVSS Vector Breakdown

AV:NAC:HPR:LUI:NS:UC:LI:HA:N
Exploitability
AV:NAttack Vector
Network
AC:HAttack Complexity
High
PR:LPrivileges Required
Low
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:LConfidentiality
Low
I:HIntegrity
High
A:NAvailability
None

Weaknesses

Affected Products

electronpackage-ecosystemOSS Librariesaka electron-builder, packager
electronjsoss-projectOSS Librariesaka electron

Attack Graph

Products CVE Techniques Tactics

Click technique nodes to view MITRE ATT&CK details. Scroll to zoom, drag to pan.

Exploitability

Official Patch Available

MITRE ATT&CK

2 techniques
Collection
Initial Access
View detailed technique mapping

References

Timeline

Published
Apr 3, 2026
Last Updated
Apr 20, 2026

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2026-34778 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows