製品・ソフトウェアに関する情報
Electronのelectronにおける同一生成元ポリシー違反に関する脆弱性
Title Electronのelectronにおける同一生成元ポリシー違反に関する脆弱性
Summary

Electronは、JavaScript、HTML、CSSを使用してクロスプラットフォームのデスクトップアプリケーションを作成するためのフレームワークです。バージョン38.8.6、39.8.1、40.8.1、および41.0.0より前のバージョンでは、iframeがフルスクリーン、pointerLock、keyboardLock、openExternal、またはメディアの権限を要求する際に、session.setPermissionRequestHandler()に渡されるオリジンは要求しているiframeのオリジンではなく、トップレベルページのオリジンでした。オリジンパラメータやwebContents.getURL()に基づいて権限を付与するアプリは、意図せずに埋め込まれたサードパーティコンテンツに権限を付与してしまう可能性があります。正しい要求元のURLはdetails.requestingUrlで引き続き取得可能です。すでにdetails.requestingUrlをチェックしているアプリは影響を受けません。この問題はバージョン38.8.6、39.8.1、40.8.1、および41.0.0で修正されています。

Possible impacts 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 4, 2026, midnight
Registration Date April 21, 2026, 10:47 a.m.
Last Update April 21, 2026, 10:47 a.m.
CVSS3.0 : 警告
Score 5.4
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Affected System
Electron
electron 38.8.6 未満
electron 39.0.0 以上 39.8.1 未満
electron 40.0.0 以上 40.8.1 未満
electron 41.0.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年04月21日]
  掲載
April 21, 2026, 10:47 a.m.

NVD Vulnerability Information
CVE-2026-34777
Summary

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.

Publication Date April 4, 2026, 9:16 a.m.
Registration Date April 15, 2026, 11:25 a.m.
Last Update April 20, 2026, 11:19 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* 38.8.6
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* 39.0.0 39.8.1
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* 40.0.0 40.8.1
cpe:2.3:a:electronjs:electron:41.0.0:alpha1:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:alpha2:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:alpha3:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:alpha4:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:alpha5:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:alpha6:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:beta1:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:beta2:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:beta3:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:beta4:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:beta5:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:beta6:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:beta7:*:*:*:node.js:*:*
cpe:2.3:a:electronjs:electron:41.0.0:beta8:*:*:*:node.js:*:*
Related information, measures and tools
Common Vulnerabilities List