<?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 (&lt; 3.7.2) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/siyuan--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:23:41 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/siyuan--3.7.2/feed.xml" rel="self" type="application/rss+xml"/><item><title>SiYuan Stored XSS Leads to Remote Code Execution (CVE-2026-66396)</title><link>https://feed.craftedsignal.io/briefs/2026-07-siyuan-xss-rce/</link><pubDate>Mon, 27 Jul 2026 16:23:41 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-siyuan-xss-rce/</guid><description>SiYuan before v3.7.2 is vulnerable to stored cross-site scripting (XSS) due to improper escaping of the title-img Individual Attribute List value when rendering Gallery and Kanban cover images, allowing attackers with editor permissions to inject malicious onload handlers that execute arbitrary code in the Electron renderer with full Node.js access, leading to remote code execution.</description><content:encoded><![CDATA[<p>CVE-2026-66396 describes a critical vulnerability affecting SiYuan versions prior to v3.7.2, a popular markdown-based note-taking application. The vulnerability stems from improper input neutralization, specifically a stored cross-site scripting (XSS) flaw, where the application fails to escape user-controlled input in the <code>title-img Individual Attribute List</code> value. This occurs during the rendering of Gallery and Kanban cover images. An attacker, requiring existing editor permissions within a SiYuan instance or document, can inject malicious <code>onload</code> handlers. When a victim opens an affected document, these handlers execute arbitrary code within the Electron renderer with full Node.js access, effectively enabling remote code execution (RCE) on the victim's system. This flaw poses a significant risk as it can lead to full system compromise from a seemingly benign document interaction.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker obtains editor permissions within a SiYuan instance or document.</li>
<li>The attacker crafts a malicious JavaScript payload containing an <code>onload</code> handler designed to execute arbitrary commands.</li>
<li>This payload is injected into the <code>title-img Individual Attribute List</code> value of a Gallery or Kanban cover image within a SiYuan document.</li>
<li>The attacker saves the modified document, thereby persisting the malicious payload.</li>
<li>A victim user opens the compromised SiYuan document containing the maliciously crafted image.</li>
<li>During the rendering of the Gallery or Kanban cover image, the SiYuan application fails to properly escape the injected <code>title-img Individual Attribute List</code> value.</li>
<li>The <code>onload</code> handler embedded in the unescaped value executes, triggering the malicious JavaScript within the Electron renderer process.</li>
<li>Due to the Electron application's full Node.js access, the malicious JavaScript achieves arbitrary code execution on the victim's system, leading to remote code execution.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-66396 allows an attacker with editor permissions to achieve remote code execution on the system of any user who opens an affected SiYuan document. This can lead to complete compromise of the victim's workstation, including data exfiltration, installation of additional malware, or further lateral movement within an organization's network. While specific victim numbers are not provided, any organization using vulnerable versions of SiYuan where users share or collaborate on documents is at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-66396 immediately by upgrading SiYuan to version v3.7.2 or later on all affected systems.</li>
<li>Review access controls within SiYuan instances to ensure only trusted users have editor permissions.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>xss</category><category>remote-code-execution</category><category>client-side-exploitation</category><category>electron</category></item></channel></rss>