{"schemaVersion":3,"id":"CVE-2026-34778","aliases":["GHSA-xj5x-m3f3-5x3h"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-04-03T23:59:07.419Z","modified":"2026-04-06T15:50:49.205Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N","exploitability":4.1,"impact":7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00139,"percentile":0.02962,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.011999999999999988,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00127},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00123,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00123,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00123,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00123,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00127,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00127,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00127,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00127,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00127,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00127,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00139,"percentile":0.02962}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00127,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00127,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00127,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00127,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00139,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00139,"percentile":0.02962}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing","description":"This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/290.html"},{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity","description":"The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/345.html"}],"affected":[{"vendor":"electron","product":"electron","name":"electron","label":"electron","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 38.8.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 39.0.0-alpha.1, < 39.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 40.0.0-alpha.1, < 40.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 41.0.0-alpha.1, < 41.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 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","eol":null,"hubHref":"/vendor/electron/electron"},{"vendor":"electronjs","product":"electron","name":"electron","label":"electron","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 38.8.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 39.0.0, < 39.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 40.0.0, < 40.8.1","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:alpha1","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:alpha2","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:alpha3","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:alpha4","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:alpha5","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:alpha6","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:beta4","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:beta5","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:beta6","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:beta7","noFixRecorded":false,"fixedIn":null},{"text":"41.0.0:beta8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 38.8.6 | ≥ 39.0.0, < 39.8.1 | ≥ 40.0.0, < 40.8.1 | 41.0.0:alpha1 | 41.0.0:alpha2 | 41.0.0:alpha3 | 41.0.0:alpha4 | 41.0.0:alpha5 | 41.0.0:alpha6 | 41.0.0:beta1 | 41.0.0:beta2 | 41.0.0:beta3 | 41.0.0:beta4 | 41.0.0:beta5 | 41.0.0:beta6 | 41.0.0:beta7 | 41.0.0:beta8","eol":{"isEol":true,"eolDate":"2026-08-24T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"41","label":"41","eolFrom":"2026-08-24T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"41.10.7"},"product":{"name":"electron","label":"Electron","category":"framework"}},"hubHref":"/vendor/electronjs/electron"},{"vendor":"Npm","product":"electron","name":"electron","label":"electron","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/electron","purlType":"npm","versions":[{"text":"< 38.8.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 39.0.0-alpha.1, < 39.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 40.0.0-alpha.1, < 40.8.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 41.0.0-alpha.1, < 41.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 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","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-xj5x-m3f3-5x3h","label":"github.com/electron/electron/security/advisories/GHSA-xj5x-m3f3-5x3h","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34778","label":"nvd.nist.gov/vuln/detail/CVE-2026-34778","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/electron/electron","label":"github.com/electron/electron","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-04-03T23:59:07.419Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-06T15:50:49.205Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T08:42:50.587Z","stale":false,"partial":false}}