Staging Environment: Content and features may be unstable or change without notice.
Search for vulnerabilities
Vulnerability details: VCID-gxk8-9wc6-wkhs
Vulnerability ID VCID-gxk8-9wc6-wkhs
Aliases CVE-2026-34778
GHSA-xj5x-m3f3-5x3h
Summary Electron: Service worker can spoof executeJavaScript IPC replies ### Impact 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. ### Workarounds Do not trust the return value of `webContents.executeJavaScript()` for security decisions. Use dedicated, validated IPC channels for security-relevant communication with renderers. ### Fixed Versions * `41.0.0` * `40.8.1` * `39.8.1` * `38.8.6` ### For more information If there are any questions or comments about this advisory, please email [security@electronjs.org](mailto:security@electronjs.org)
Status Published
Exploitability 0.5
Weighted Severity 6.2
Risk 3.1
Affected and Fixed Packages Package Details
Weaknesses (4)
System Score Found at
cvssv3 5.9 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-34778.json
epss 0.00014 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 0.00014 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 0.00014 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 0.00015 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 0.00015 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 0.00015 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 0.00015 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 0.00015 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 0.00015 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 6e-05 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 6e-05 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 6e-05 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 6e-05 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 6e-05 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
epss 6e-05 https://api.first.org/data/v1/epss?cve=CVE-2026-34778
cvssv3.1_qr MODERATE https://github.com/advisories/GHSA-xj5x-m3f3-5x3h
cvssv3.1 5.9 https://github.com/electron/electron
generic_textual MODERATE https://github.com/electron/electron
cvssv3.1 5.9 https://github.com/electron/electron/security/advisories/GHSA-xj5x-m3f3-5x3h
cvssv3.1_qr MODERATE https://github.com/electron/electron/security/advisories/GHSA-xj5x-m3f3-5x3h
generic_textual MODERATE https://github.com/electron/electron/security/advisories/GHSA-xj5x-m3f3-5x3h
ssvc Track https://github.com/electron/electron/security/advisories/GHSA-xj5x-m3f3-5x3h
cvssv3.1 5.9 https://nvd.nist.gov/vuln/detail/CVE-2026-34778
generic_textual MODERATE https://nvd.nist.gov/vuln/detail/CVE-2026-34778
No exploits are available.
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N Found at https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-34778.json
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N Found at https://github.com/electron/electron
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N Found at https://github.com/electron/electron/security/advisories/GHSA-xj5x-m3f3-5x3h
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-04-06T15:50:39Z/ Found at https://github.com/electron/electron/security/advisories/GHSA-xj5x-m3f3-5x3h
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2026-34778
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Exploit Prediction Scoring System (EPSS)
Percentile 0.02428
EPSS Score 0.00014
Published At April 4, 2026, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2026-04-03T21:42:24.633790+00:00 GithubOSV Importer Import https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-xj5x-m3f3-5x3h/GHSA-xj5x-m3f3-5x3h.json 38.1.0