<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Electron — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/electron/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata — refreshed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sat, 04 Apr 2026 01:16:39 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/electron/feed.xml" rel="self" type="application/rss+xml"/><item><title>Electron VideoFrame Context Isolation Bypass Vulnerability (CVE-2026-34780)</title><link>https://feed.craftedsignal.io/briefs/2026-04-electron-videoframes/</link><pubDate>Sat, 04 Apr 2026 01:16:39 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-electron-videoframes/</guid><description>A context isolation bypass vulnerability exists in Electron applications that bridge VideoFrame objects via contextBridge, potentially allowing an attacker with JavaScript execution in the main world to access the isolated world and Node.js APIs.</description><content:encoded><![CDATA[<p>Electron, a framework for building cross-platform desktop applications using web technologies, is vulnerable to a context isolation bypass (CVE-2026-34780) when handling VideoFrame objects. This vulnerability affects Electron versions 39.0.0-alpha.1 to before 39.8.0, 40.0.0-alpha.1 to before 40.7.0, and 41.0.0-alpha.1 to before 41.0.0-beta.8. Specifically, applications are at risk if they utilize <code>contextBridge.exposeInMainWorld()</code> to pass a VideoFrame object from a preload script to the main world. An attacker who achieves JavaScript execution in the main world, for example, through a cross-site scripting (XSS) vulnerability, can leverage a bridged VideoFrame to bypass context isolation and gain access to the isolated world, including Node.js APIs exposed to the preload script. This access enables further malicious activities, potentially leading to arbitrary code execution on the host system. Patches are available in versions 39.8.0, 40.7.0, and 41.0.0-beta.8.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker identifies an Electron application using a vulnerable version of Electron (39.0.0-alpha.1 to 39.7.x, 40.0.0-alpha.1 to 40.6.x, or 41.0.0-alpha.1 to 41.0.0-beta.7) that also uses <code>contextBridge.exposeInMainWorld()</code> to expose a <code>VideoFrame</code> object.</li>
<li>The attacker injects malicious JavaScript code into the application&rsquo;s main world. This can be achieved through various means, such as exploiting a cross-site scripting (XSS) vulnerability.</li>
<li>The injected JavaScript code interacts with the bridged <code>VideoFrame</code> object.</li>
<li>The <code>VideoFrame</code> object, due to the vulnerability, allows the attacker to bypass context isolation and gain access to the isolated world.</li>
<li>The attacker leverages the access to the isolated world to access Node.js APIs that are exposed to the preload script.</li>
<li>The attacker utilizes the exposed Node.js APIs to perform malicious actions, such as reading sensitive data, modifying application settings, or executing arbitrary code on the host system.</li>
<li>The attacker may escalate privileges by exploiting further vulnerabilities or misconfigurations within the application or the underlying operating system.</li>
<li>The final objective is to achieve arbitrary code execution on the host system, allowing the attacker to perform any desired actions.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability (CVE-2026-34780) allows an attacker to bypass context isolation in affected Electron applications, potentially leading to arbitrary code execution. The number of victims depends on the popularity and security posture of Electron applications that bridge VideoFrame objects. If the attack succeeds, an attacker could steal sensitive data, install malware, or completely compromise the user&rsquo;s system. Sectors heavily reliant on Electron-based desktop applications, such as communication, development, and productivity tools, are at higher risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Electron applications to patched versions (39.8.0, 40.7.0, or 41.0.0-beta.8) to address CVE-2026-34780.</li>
<li>Review and sanitize all user-supplied input to prevent XSS vulnerabilities that can be leveraged to exploit CVE-2026-34780.</li>
<li>Implement strict Content Security Policy (CSP) to mitigate the risk of XSS attacks.</li>
<li>Monitor application logs for suspicious JavaScript execution, especially related to <code>VideoFrame</code> objects and <code>contextBridge.exposeInMainWorld()</code>, to detect potential exploitation attempts.</li>
<li>Deploy the Sigma rule for suspicious process execution via Node.js APIs to detect malicious behavior following a successful context isolation bypass.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>electron</category><category>context-isolation</category><category>javascript</category><category>xss</category><category>CVE-2026-34780</category><category>defense-evasion</category><category>privilege-escalation</category></item><item><title>Electron Use-After-Free Vulnerability in Offscreen Rendering with Child Windows</title><link>https://feed.craftedsignal.io/briefs/2026-04-electron-use-after-free/</link><pubDate>Fri, 03 Apr 2026 02:42:27 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-electron-use-after-free/</guid><description>A use-after-free vulnerability (CVE-2026-34774) exists in Electron applications using offscreen rendering and allowing child windows, potentially leading to crashes or memory corruption if the parent WebContents is destroyed before the child window.</description><content:encoded><![CDATA[<p>Electron applications utilizing offscreen rendering (<code>webPreferences.offscreen: true</code>) and permitting child windows via <code>window.open()</code> are susceptible to a use-after-free vulnerability, identified as CVE-2026-34774. This vulnerability arises when a parent offscreen <code>WebContents</code> is destroyed while a child window remains open. Subsequently, paint frames on the child window dereference freed memory, which can result in application crashes or memory corruption. Applications are only affected if they meet both criteria: employing offscreen rendering and allowing child window creation. Electron versions prior to 39.8.1, versions between 40.0.0-alpha.1 and 40.7.0, and versions between 41.0.0-alpha.1 and 41.0.0 are vulnerable. Defenders should prioritize patching or implementing workarounds to mitigate the risk of exploitation.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An Electron application is launched with <code>webPreferences.offscreen</code> set to <code>true</code>, enabling offscreen rendering.</li>
<li>The application&rsquo;s <code>setWindowOpenHandler</code> is configured to permit the creation of child windows using <code>window.open()</code>.</li>
<li>User interaction or application logic triggers the creation of a child window.</li>
<li>The parent offscreen <code>WebContents</code> is destroyed, for example, by closing the main window or navigating to a different page that releases the <code>WebContents</code> object.</li>
<li>The child window remains open and continues to receive paint events.</li>
<li>During a paint event, the child window attempts to access memory that was previously allocated to the parent <code>WebContents</code> but has now been freed.</li>
<li>This memory access results in a use-after-free condition, leading to a crash or memory corruption.</li>
<li>An attacker can potentially leverage this memory corruption to execute arbitrary code within the context of the Electron application.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability can lead to application crashes and potential arbitrary code execution. The severity is high, as code execution could allow an attacker to gain control of the affected application, potentially leading to data theft, system compromise, or other malicious activities. Organizations using vulnerable Electron applications may experience service disruptions and potential data breaches. The number of affected applications and users is potentially large, given the widespread use of Electron for cross-platform desktop application development.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade to Electron versions 39.8.1, 40.7.0, or 41.0.0 or later to address CVE-2026-34774.</li>
<li>Implement the suggested workarounds by either denying child window creation from offscreen renderers in your <code>setWindowOpenHandler</code> or ensuring child windows are closed before the parent is destroyed.</li>
<li>Monitor application logs for unexpected crashes or memory-related errors that may indicate exploitation attempts.</li>
<li>Consider implementing runtime application self-protection (RASP) techniques to detect and prevent use-after-free vulnerabilities.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>electron</category><category>use-after-free</category><category>vulnerability</category><category>cve-2026-34774</category></item><item><title>Electron Use-After-Free Vulnerability in PowerMonitor Module</title><link>https://feed.craftedsignal.io/briefs/2024-01-29-electron-use-after-free/</link><pubDate>Fri, 03 Apr 2026 02:39:52 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-29-electron-use-after-free/</guid><description>A use-after-free vulnerability exists in the `powerMonitor` module of Electron applications on Windows and macOS. When the native `PowerMonitor` object is garbage-collected, dangling references are retained by OS-level resources. Subsequent session-change events on Windows or system shutdowns on macOS may dereference freed memory, potentially leading to a crash or memory corruption.</description><content:encoded><![CDATA[<p>A use-after-free vulnerability has been identified in the <code>powerMonitor</code> module of Electron versions prior to 38.8.6, between 39.0.0-alpha.1 and 39.8.1, between 40.0.0-alpha.1 and 40.8.0, and between 41.0.0-alpha.1 and 41.0.0-beta.8. This vulnerability occurs when the native <code>PowerMonitor</code> object is garbage-collected, but associated OS-level resources (message window on Windows, shutdown handler on macOS) retain dangling references. This issue can lead to a crash or memory corruption when a session-change event on Windows or system shutdown on macOS attempts to dereference the freed memory. All Electron applications that utilize the <code>powerMonitor</code> module and its events (e.g., <code>suspend</code>, <code>resume</code>, <code>lock-screen</code>) are potentially vulnerable. Defenders should prioritize patching Electron to the fixed versions to mitigate the risk.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An Electron application is built using a vulnerable version of Electron (e.g., 38.8.5).</li>
<li>The application utilizes the <code>powerMonitor</code> module to listen for system power events.</li>
<li>The application runs on a Windows or macOS system.</li>
<li>The native <code>PowerMonitor</code> object is garbage-collected by the JavaScript engine. The associated OS-level resources on Windows (message window) or macOS (shutdown handler) are not properly released.</li>
<li>A session-change event occurs on Windows (e.g., user lock/unlock) or a system shutdown is initiated on macOS.</li>
<li>The OS attempts to notify the previously freed <code>PowerMonitor</code> object about the session change or shutdown event.</li>
<li>The OS dereferences the dangling pointer, leading to a use-after-free condition.</li>
<li>The application crashes or experiences memory corruption, potentially leading to denial of service or other undefined behavior.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this use-after-free vulnerability can lead to application crashes and potential memory corruption. The impact affects any Electron application that uses the <code>powerMonitor</code> module, potentially disrupting application functionality and causing data loss. The vulnerability affects all platforms where Electron applications are deployed, specifically Windows and macOS. The severity is high due to the potential for application instability and the lack of application-side workarounds, requiring a patch to the Electron framework itself.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Electron to a patched version (41.0.0-beta.8, 40.8.0, 39.8.1, or 38.8.6) to resolve the use-after-free vulnerability in the <code>powerMonitor</code> module.</li>
<li>Monitor application crash logs for indicators of use-after-free conditions, especially following session-change events on Windows or system shutdowns on macOS.</li>
<li>Implement application monitoring to detect unexpected memory corruption events, which could be a sign of successful exploitation.</li>
<li>Contact <a href="mailto:security@electronjs.org">security@electronjs.org</a> for any questions or comments about the advisory.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>electron</category><category>use-after-free</category><category>vulnerability</category><category>powermonitor</category><category>windows</category><category>macos</category></item></channel></rss>