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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c Patch
- https://github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwp Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 5.9 · electronjsNVD modified 2026-10-08 13:54
Affected (CPE criteria) 9
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*cpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:*cpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:*cpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:*cpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:*cpe:2.3:a:electronjs:electron:42.0.0:alpha5:*:*:*:node.js:*:*cpe:2.3:a:electronjs:electron:42.0.0:alpha6:*:*:*:node.js:*:*cpe:2.3:a:electronjs:electron:42.0.0:beta1:*:*:*:node.js:*:*cpe:2.3:a:electronjs:electron:42.0.0:beta2:*:*:*:node.js:*:*