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

CVE-2026-34777: Electron: Incorrect origin passed to permission request handler for iframe requests

April 3, 2026 (updated April 6, 2026)

When an iframe requests fullscreen, pointerLock, keyboardLock, openExternal, or media permissions, the origin passed to session.setPermissionRequestHandler() was the top-level page’s origin rather than the requesting iframe’s origin. Apps that grant permissions based on the origin parameter or webContents.getURL() may inadvertently grant permissions to embedded third-party content.

The correct requesting URL remains available via details.requestingUrl. Apps that already check details.requestingUrl are not affected.

References

  • github.com/advisories/GHSA-r5p7-gp4j-qhrx
  • github.com/electron/electron
  • github.com/electron/electron/security/advisories/GHSA-r5p7-gp4j-qhrx
  • nvd.nist.gov/vuln/detail/CVE-2026-34777

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 38.8.6, all versions starting from 39.0.0-alpha.1 before 39.8.1, all versions starting from 40.0.0-alpha.1 before 40.8.1, all versions starting from 41.0.0-alpha.1 before 41.0.0

Fixed versions

  • 38.8.6
  • 39.8.1
  • 40.8.1
  • 41.0.0

Solution

Upgrade to versions 38.8.6, 39.8.1, 40.8.1, 41.0.0 or above.

Impact 5.4 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error

Source file

npm/electron/CVE-2026-34777.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:18:24 +0000.