{"id":"CVE-2026-70599","published":"2026-08-05T15:36:02Z","modified":"2026-08-05T18:41:57Z","title":"Electron: Permission Check Handler Receives Main Frame Origin Instead of Requesting Iframe Origin","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 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1, serial-port and media permission checks made from an iframe passed the top-level frame origin to session.setPermissionCheckHandler instead of the requesting iframe origin. Origin-based handler logic could grant a cross-origin iframe device access intended only for the top-level origin. This issue is fixed in 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00193,"percentile":0.09207,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c","tags":["x_refsource_MISC"]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":1.84},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":["< 39.8.7",">= 40.0.0-alpha.1, < 40.9.0",">= 41.0.0-alpha.1, < 41.2.0",">= 42.0.0-alpha.1, < 42.0.0-beta.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-05T18:13:54.699962Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":["<39.8.7",">=40.0.0-alpha.1, <40.9.0",">=41.0.0-alpha.1, <41.2.0",">=42.0.0-alpha.1, <42.0.0-beta.1"],"patched":["39.8.7","40.9.0","41.2.0","42.0.0-beta.1"],"from":["GHSA-9pf5-hg6p-4pwp"],"provenance":"source"}],"summary":{"text":"Electron's session.setPermissionCheckHandler mishandles serial-port and media permission checks made from iframes: the handler receives the top-level frame's origin rather than the requesting iframe's origin. An attacker controlling a cross-origin iframe inside an Electron application could, under conditions where origin-based handler logic grants access, obtain device access intended only for the top-level origin, requiring network access and no authentication or user interaction, though attack complexity is high.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:11Z"},"euvd":{"id":"EUVD-2026-53428","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-electron-cve-2026-70599","children":[{"from":"CVE-2026-70599","to":"CVE-2026-113798","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["shell/browser/web_contents_permission_helper.cc"],"commits":["https://github.com/electron/electron/commit/076c7496791a45968cf8d9e76e9657bc161ea979","https://github.com/electron/electron/commit/0b680cfa1ffa70a50282da53efde37a210d5223b","https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.4,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2026-70599","to":"CVE-2026-114121","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["shell/browser/web_contents_permission_helper.cc","shell/browser/web_contents_permission_helper.h"],"commits":["https://github.com/electron/electron/commit/25057643bf6d9a20bad69e45707551ccf546f5ce","https://github.com/electron/electron/commit/8aa5414f73792ed3b2e3f9ab6391b1832e6dc2c3","https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c"],"basis":"shared function","functions":["RequestOpenExternalPermission","RequestPermission","WebContentsPermissionHelper"]}]}],"packageHistory":[{"cve":"CVE-2026-34764","published":"2026-04-06","fixed":"42.0.0-alpha.5","kev":false},{"cve":"CVE-2026-34765","published":"2026-04-07","fixed":"42.0.0-alpha.5","kev":false,"link":{"from":"CVE-2026-34765","to":"CVE-2026-70599","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"42.0.0-alpha.5","toFixed":"42.0.0-beta.1","daysApart":120}]}},{"cve":"CVE-2026-34781","published":"2026-04-07","fixed":"42.0.0-alpha.5","kev":false},{"cve":"CVE-2026-70599","published":"2026-08-05","fixed":"42.0.0-beta.1","kev":false},{"cve":"CVE-2026-70603","published":"2026-08-05","fixed":"42.0.0-beta.1","kev":false,"link":{"from":"CVE-2026-70603","to":"CVE-2026-70599","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"39.8.6","toFixed":"39.8.7","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"41.1.1","toFixed":"41.2.0","daysApart":0}]}},{"cve":"CVE-2026-70609","published":"2026-08-05","fixed":"42.0.0-beta.1","kev":false},{"cve":"CVE-2026-102672","published":"2026-10-13","fixed":"42.0.0-beta.2","kev":false}],"package":"npm:electron"}}