天下漏洞,尽知其名
HIGH

CVE-2026-102674 Electron 沙箱限制绕过漏洞

影响攻击者可绕过沙箱限制,以应用完整源执行操作

AI 研判

Electron 是使用 JavaScript、HTML 和 CSS 编写跨平台桌面应用的框架。在 41.10.6、42.9.2、43.4.1 和 44.0.0-beta.5 之前的版本中,从沙箱化顶层文档打开的窗口不会继承该文档的活动 HTML 沙箱限制。

影响范围

Electron

Electron 41.10.6、42.9.2、43.4.1 和 44.0.0-beta.5 之前的版本。

漏洞详情

该漏洞属于沙箱限制绕过。沙箱化顶层文档中允许打开弹窗的不可信内容,可创建具有 Electron 应用完整源而非沙箱预期受限源的窗口,从而突破沙箱隔离。使用 setWindowOpenHandler 拒绝此类弹窗的应用不受影响。

利用条件与风险

利用前提是应用允许沙箱化顶层文档打开弹窗且未通过 setWindowOpenHandler 拒绝;成功利用可导致沙箱逃逸,使不可信内容获得应用完整源权限,实战风险较高。

修复建议

升级到 Electron 41.10.6、42.9.2、43.4.1 或 44.0.0-beta.5 及更高版本;临时缓解措施为使用 setWindowOpenHandler 拒绝来自沙箱化文档的弹窗。

原始情报

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 41.10.6, 42.9.2, 43.4.1, and 44.0.0-beta.5, windows opened from a sandboxed top-level document did not inherit that document’s active HTML sandbox restrictions. Untrusted content in a sandboxed top-level document that was permitted to open popups could therefore create a window with the Electron application’s full origin instead of the restricted origin intended by the sandbox. Applications that deny such popups with setWindowOpenHandler are not affected. This issue is fixed in versions 41.10.6, 42.9.2, 43.4.1, and 44.0.0-beta.5.