<?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; V3.7.2 - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/siyuan--v3.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>Thu, 23 Jul 2026 12:27:32 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/siyuan--v3.7.2/feed.xml" rel="self" type="application/rss+xml"/><item><title>SiYuan Stored XSS Vulnerability Leading to RCE (CVE-2026-65605)</title><link>https://feed.craftedsignal.io/briefs/2026-07-siyuan-xss-rce/</link><pubDate>Thu, 23 Jul 2026 12:27:32 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-siyuan-xss-rce/</guid><description>A stored cross-site scripting (XSS) vulnerability, identified as CVE-2026-65605, exists in SiYuan prior to version v3.7.2. The flaw allows an attacker to inject crafted HTML, such as an `&lt;img&gt;` tag with an `onerror` attribute, which, when viewed in the Attribute View (database) cell rendering, executes arbitrary JavaScript and can escalate to remote code execution due to `nodeIntegration` being enabled in the desktop renderer.</description><content:encoded><![CDATA[<p>A critical stored cross-site scripting (XSS) vulnerability, tracked as CVE-2026-65605, has been identified in SiYuan versions prior to v3.7.2. This flaw resides in the &quot;Attribute View&quot; (database) cell rendering, where &quot;Template&quot; column values are rendered as HTML. The application's sanitization mechanism fails to properly auto-escape all HTML, specifically when balanced self-closing tags like <code>&lt;img&gt;</code> are present. An attacker can inject a payload such as <code>&lt;img src=x onerror=...&gt;</code> into a Template column. When a user views the affected database, the malicious payload is rendered unescaped via <code>innerHTML</code>, leading to JavaScript execution. Critically, because the SiYuan desktop renderer operates with <code>nodeIntegration</code> enabled, the injected JavaScript can access Node.js APIs, allowing it to leverage <code>require</code> for arbitrary command execution on the victim's underlying operating system. This vulnerability poses a significant risk of remote code execution.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious payload containing JavaScript, such as <code>&lt;img src=x onerror='require(&quot;child_process&quot;).exec(&quot;calc.exe&quot;)'&gt;</code>.</li>
<li>The attacker inserts this payload into a &quot;Template&quot; column value within the &quot;Attribute View&quot; of a SiYuan database entry.</li>
<li>The SiYuan application stores this malicious payload unescaped because its <code>HasUnclosedHtmlTag</code> check skips balanced self-closing tags, circumventing proper HTML escaping.</li>
<li>A legitimate user accesses or views the database entry containing the maliciously crafted input within the SiYuan application.</li>
<li>The SiYuan desktop renderer processes and renders the database cell content, inserting the stored malicious HTML payload directly into the page's Document Object Model (DOM) via <code>innerHTML</code>.</li>
<li>The embedded JavaScript code (e.g., within the <code>onerror</code> attribute of the <code>&lt;img&gt;</code> tag) executes within the context of the SiYuan application.</li>
<li>Due to <code>nodeIntegration</code> being enabled in the desktop renderer, the executed JavaScript gains access to Node.js APIs, including the <code>require</code> function.</li>
<li>The script leverages <code>require</code> to load Node.js modules (e.g., <code>child_process</code>) and execute arbitrary commands on the victim's underlying operating system, achieving remote code execution.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-65605 results in arbitrary code execution on the victim's operating system with the privileges of the SiYuan desktop application. This can lead to complete compromise of the affected system, including data theft, installation of additional malware, or further network lateral movement. The vulnerability's CVSS v3.1 Base Score is 9.6, indicating critical severity. All users running SiYuan desktop applications prior to version v3.7.2 are at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-65605 by updating all SiYuan installations to version v3.7.2 or later immediately.</li>
<li>Implement strong egress filtering to prevent unauthorized outbound connections initiated by potentially compromised applications.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>cross-site-scripting</category><category>xss</category><category>remote-code-execution</category><category>rce</category><category>vulnerability</category><category>electron</category></item></channel></rss>