BreachSpiderVerified, not vibes

CVE-2026-34778 in Electronjs Electron

Medium 6.5 Fix available

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, causi...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.5
EPSS0.2%
EPSS percentile3th
FixAvailable

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Electronjs Electron 41.0.0 < 38.8.6 ≥ 39.0.0, < 39.8.1 ≥ 40.0.0, < 40.8.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-34778
BreachSpider IDBS-2026-GLOBAL-151345-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Published2026-04-04
Last modified2026-04-20
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-290: CWE-290

CWE-345: CWE-345

Related attack patterns (CAPEC)

CAPEC-59 Session Credential Falsification through Prediction via CWE-290

CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-290

CAPEC-142 DNS Cache Poisoning via CWE-345

CAPEC-218 Spoofing of UDDI/ebXML Messages via CWE-345

CAPEC-385 Transaction or Event Tampering via Application API Manipulation via CWE-345

Show all 22

CAPEC-387 Navigation Remapping To Propagate Malicious Content via CWE-345

CAPEC-388 Application API Button Hijacking via CWE-345

CAPEC-459 Creating a Rogue Certification Authority Certificate via CWE-290

CAPEC-476 Signature Spoofing by Misrepresentation via CWE-290

CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-345

CAPEC-667 Bluetooth Impersonation AttackS (BIAS) via CWE-290

CAPEC-111 JSON Hijacking (aka JavaScript Hijacking) via CWE-345

CAPEC-141 Cache Poisoning via CWE-345

CAPEC-384 Application API Message Manipulation via Man-in-the-Middle via CWE-345

CAPEC-386 Application API Navigation Remapping via CWE-345

CAPEC-461 Web Services API Signature Forgery Leveraging Hash Function Extension Weakness via CWE-290

CAPEC-473 Signature Spoof via CWE-290

CAPEC-701 Browser in the Middle (BiTM) via CWE-345

CAPEC-21 Exploitation of Trusted Identifiers via CWE-290

CAPEC-22 Exploiting Trust in Client via CWE-290

CAPEC-94 Adversary in the Middle (AiTM) via CWE-290

CAPEC-148 Content Spoofing via CWE-345

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in Electron versions prior to 38.8.6, 39.8.1, 40.8.1, and 41.0.0 allows a service worker to spoof reply messages on the internal IPC channel used by webContents.executeJavaScript() and related methods, potentially leading to the main-process promise resolving with attacker-controlled data.

An attacker can exploit this vulnerability by injecting malicious code into a service worker that can intercept and manipulate IPC messages, leading to the main process executing JavaScript with potentially harmful data.

Questions

What is CVE-2026-34778?

A vulnerability in Electron versions prior to 38.8.6, 39.8.1, 40.8.1, and 41.0.0 allows a service worker to spoof reply messages on the internal IPC channel used by webContents.executeJavaScript() and related methods, potentially leading to the main-process promise resolving with attacker-controlled data.

What is the CVSS score for CVE-2026-34778?

CVE-2026-34778 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.2%.

Is CVE-2026-34778 actively exploited?

No confirmed active exploitation of CVE-2026-34778 as of 2026-05-30.

How do I remediate CVE-2026-34778?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2026-34778?

CVE-2026-34778 affects Electronjs Electron.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Electronjs","product":"Electron","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-20.