<?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>SiYuan Desktop (&lt; 3.7.2) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/siyuan-desktop--3.7.2/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Mon, 27 Jul 2026 16:27:06 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/siyuan-desktop--3.7.2/feed.xml" rel="self" type="application/rss+xml"/><item><title>CVE-2026-66395 - SiYuan Desktop Reflected XSS to RCE</title><link>https://feed.craftedsignal.io/briefs/2026-07-cve-2026-66395-siyuan-rce/</link><pubDate>Mon, 27 Jul 2026 16:27:06 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-cve-2026-66395-siyuan-rce/</guid><description>A reflected cross-site scripting (XSS) vulnerability exists in SiYuan desktop applications before version 3.7.2, specifically within the bazaar plugin readme handler, allowing attackers to execute arbitrary code by crafting a malicious 'siyuan://' deep link, which leads to Remote Code Execution (RCE) with full Node.js access due to insecure Electron renderer configuration.</description><content:encoded><![CDATA[<p>CVE-2026-66395 details a critical reflected cross-site scripting (XSS) vulnerability impacting SiYuan desktop versions prior to 3.7.2. This flaw, residing in the bazaar plugin readme handler, enables an attacker to achieve Remote Code Execution (RCE). The attack vector involves crafting a malicious <code>siyuan://</code> deep link that embeds an HTML payload within the <code>plugin name</code> parameter. When a user is persuaded to open this link, the SiYuan application, built on Electron, processes the URL. Due to an insecure configuration of its Electron renderer, the malicious HTML is rendered via <code>insertAdjacentHTML</code>, granting the attacker full Node.js access and the ability to execute arbitrary code on the victim's system. This vulnerability poses a significant threat, as it can lead to complete system compromise if exploited.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker crafts a malicious <code>siyuan://</code> deep link, embedding an XSS payload within the <code>plugin name</code> parameter.</li>
<li>The crafted deep link is delivered to a victim, typically via social engineering tactics such as email or chat messages.</li>
<li>The victim is enticed to click or open the malicious deep link.</li>
<li>The operating system's deep link handler invokes the installed SiYuan desktop application to process the <code>siyuan://</code> URL.</li>
<li>The SiYuan application processes the URL, passing the malicious <code>plugin name</code> parameter to the bazaar plugin readme handler.</li>
<li>The <code>readme</code> handler renders the crafted HTML payload using <code>insertAdjacentHTML</code> within an insecurely configured Electron renderer process.</li>
<li>The embedded JavaScript within the HTML payload executes with full Node.js privileges, allowing the attacker to run arbitrary code on the victim's system.</li>
<li>This results in Remote Code Execution (RCE), enabling further compromise such as data exfiltration, installation of malware, or establishing persistence.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-66395 grants an attacker Remote Code Execution (RCE) capabilities on the victim's system. This can lead to severe consequences, including full control over the compromised machine, sensitive data theft, privilege escalation, and deployment of additional malicious payloads like ransomware or backdoors. While specific victim counts or targeted sectors are not detailed in the source, any user of SiYuan desktop applications running a vulnerable version is at risk, across all operating systems where the application is deployed (Windows, Linux, macOS). The high CVSS score of 9.6 reflects the critical nature of this vulnerability.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-66395 immediately by updating SiYuan desktop to version 3.7.2 or later on all affected Windows, Linux, and macOS systems.</li>
<li>Deploy the provided Sigma rule &quot;Detect Suspicious Child Process from SiYuan Desktop&quot; to your SIEM and tune for your environment to identify potential RCE attempts originating from the SiYuan application.</li>
<li>Monitor process creation events for <code>SiYuan.exe</code> (or <code>siyuan</code> on Linux/macOS) spawning unusual child processes such as command shells or scripting interpreters, as outlined in the Sigma rule.</li>
<li>Educate users about the dangers of opening deep links from untrusted or suspicious sources, especially those that appear to invoke <code>siyuan://</code> protocol.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>reflected-xss</category><category>rce</category><category>electron-app</category></item></channel></rss>