{"id":"CVE-2026-34777","published":"2026-04-03T23:57:36Z","modified":"2026-04-06T15:33:30Z","title":"Electron: Incorrect origin passed to permission request handler for iframe requests","vendor":"electron","product":"electron","tier":"tail","description":{"text":"Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 38.8.6, 39.8.1, 40.8.1, and 41.0.0, 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. This issue has been patched in versions 38.8.6, 39.8.1, 40.8.1, and 41.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00141,"percentile":0.01712,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-r5p7-gp4j-qhrx","tags":["x_refsource_CONFIRM"]}],"priority":{"score":4.1,"factors":[{"name":"EPSS percentile","points":0.34},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":["< 38.8.6",">= 39.0.0-alpha.1, < 39.8.1",">= 40.0.0-alpha.1, < 40.8.1",">= 41.0.0-alpha.1, < 41.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-06T15:32:48.135022Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":["<38.8.6",">=39.0.0-alpha.1, <39.8.1",">=40.0.0-alpha.1, <40.8.1",">=41.0.0-alpha.1, <41.0.0"],"patched":["38.8.6","39.8.1","40.8.1","41.0.0"],"from":["GHSA-r5p7-gp4j-qhrx"],"provenance":"source"}],"summary":{"text":"Electron's session.setPermissionRequestHandler() passes the top-level page's origin instead of the requesting iframe's origin when iframes request fullscreen, pointerLock, keyboardLock, openExternal, or media permissions. An attacker controlling embedded third-party content can obtain those permissions when the application grants them based on the origin parameter or webContents.getURL(), provided the victim interacts with the page and the app does not check details.requestingUrl.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:35Z"},"euvd":{"id":"EUVD-2026-18953","exploited":false,"provenance":"source"}}