CVE-2026-70599
mediumpriority · track · 0EPSS 0.002 · 9 %ileEURUUSEPSS · scored 2026-10-21
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (16)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-9pf5-hg6p-4pwpElectron: Permission Check Handler Receives Main Frame Origin Instead of Requesting Iframe Origin2026-08-05ghsa · osvUS
### Impact For 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. Apps 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. ### Workarounds Check `details.securityOrigin` instead of `requestingOrigin` for these permissions, or do not delegate device permissions to untrusted iframes. ### Fixed Versions * `42.0.0-beta.1` * `41.2.0` * `40.9.0` * `39.8.7` ### For more information If you have any questions or comments about this advisory, email Electron at [security@electronjs.org](mailto:security@electronjs.org)
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6ccnnvd
- https://github.com/electron/electron/releasesPatchcnnvd
- https://github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwpcnnvd
- https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6cenisa_euvd
- https://github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwpenisa_euvd
- https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6cPatchnvd
- https://github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwpVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan