{"id":"CVE-2026-34771","published":"2026-04-03T23:47:23Z","modified":"2026-07-15T01:03:51Z","title":"Electron: Use-after-free in WebContents fullscreen, pointer-lock, and keyboard-lock permission callbacks","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.0, 40.7.0, and 41.0.0-beta.8, apps that register an asynchronous session.setPermissionRequestHandler() may be vulnerable to a use-after-free when handling fullscreen, pointer-lock, or keyboard-lock permission requests. If the requesting frame navigates or the window closes while the permission handler is pending, invoking the stored callback dereferences freed memory, which may lead to a crash or memory corruption. Apps that do not set a permission request handler, or whose handler responds synchronously, are not affected. This issue has been patched in versions 38.8.6, 39.8.0, 40.7.0, and 41.0.0-beta.8.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00299,"percentile":0.23128,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-364","name":"Signal Handler Race Condition"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-8337-3p73-46f4","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34771","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2454995","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34771.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":4.63},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":["< 38.8.6",">= 39.0.0-alpha.1, < 39.8.0",">= 40.0.0-alpha.1, < 40.7.0",">= 41.0.0-alpha.1, < 41.0.0-beta.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-07T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":["<38.8.6",">=39.0.0-alpha.1, <39.8.0",">=40.0.0-alpha.1, <40.7.0",">=41.0.0-alpha.1, <41.0.0-beta.8"],"patched":["38.8.6","39.8.0","40.7.0","41.0.0-beta.8"],"from":["GHSA-8337-3p73-46f4"],"provenance":"source"}],"summary":{"text":"Electron's WebContents fullscreen, pointer-lock, and keyboard-lock permission callbacks contain a use-after-free bug in applications that register an asynchronous session.setPermissionRequestHandler(). An attacker who can trigger one of these permission requests, typically through a page the user interacts with, can cause a crash or memory corruption by navigating the requesting frame or closing the window while the handler is still pending, so the stored callback runs against freed memory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:12Z"},"euvd":{"id":"EUVD-2026-18941","exploited":false,"provenance":"source"}}