{"id":"CVE-2026-70599","aliases":["GHSA-9pf5-hg6p-4pwp"],"url":"https://o3.security/vulnerability/CVE-2026-70599","summary":"Electron: Permission Check Handler Receives Main Frame Origin Instead of Requesting Iframe Origin","details":"### Impact\nFor serial-port and media (camera / microphone) permission checks made from an iframe, the `requestingOrigin` passed to `session.setPermissionCheckHandler` was the top-level frame's origin rather than the requesting frame's. Origin-based handler logic could therefore grant a cross-origin iframe device access intended only for the top-level origin.\n\nApps are only affected if they use `setPermissionCheckHandler` with origin-based logic and embed cross-origin iframes with delegated device permissions. Apps that base the decision on `details.securityOrigin`, or that do not embed such iframes, are not affected.\n\n### Workarounds\nCheck `details.securityOrigin` instead of `requestingOrigin` for these permissions, or do not delegate device permissions to untrusted iframes.\n\n### Fixed Versions\n* `42.0.0-beta.1`\n* `41.2.0`\n* `40.9.0`\n* `39.8.7`\n\n### For more information\nIf you have any questions or comments about this advisory, email Electron at [security@electronjs.org](mailto:security@electronjs.org)","published":"2026-08-05T15:36:02.182Z","modified":"2026-10-28T10:55:17.082693034Z","cvss":{"score":5.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":{"score":0.00182,"percentile":0.07998,"asOf":"2026-09-16"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"electron","fixedVersion":"39.8.7"},{"ecosystem":"npm","name":"electron","fixedVersion":"40.9.0"},{"ecosystem":"npm","name":"electron","fixedVersion":"41.2.0"},{"ecosystem":"npm","name":"electron","fixedVersion":"42.0.0-beta.1"}],"fix":{"url":"https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c","label":"electron/electron@0cbdf2f"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70599.json"},{"type":"ADVISORY","url":"https://github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70599"},{"type":"FIX","url":"https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c"},{"type":"PACKAGE","url":"https://github.com/electron/electron"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T10:55:17.082693034Z"}}