Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electron
  4. ›
  5. CVE-2026-70599

CVE-2026-70599: Electron: Permission Check Handler Receives Main Frame Origin Instead of Requesting Iframe Origin

August 5, 2026

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.

References

  • github.com/advisories/GHSA-9pf5-hg6p-4pwp
  • github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c
  • github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwp
  • nvd.nist.gov/vuln/detail/CVE-2026-70599

Code Behaviors & Features

Detect and mitigate CVE-2026-70599 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 39.8.7, all versions starting from 40.0.0-alpha.1 before 40.9.0, all versions starting from 41.0.0-alpha.1 before 41.2.0, all versions starting from 42.0.0-alpha.1 before 42.0.0-beta.1

Fixed versions

  • 39.8.7
  • 40.9.0
  • 41.2.0
  • 42.0.0-beta.1

Solution

Upgrade to versions 39.8.7, 40.9.0, 41.2.0, 42.0.0-beta.1 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error

Source file

npm/electron/CVE-2026-70599.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:16 +0000.