<?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/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cpe:2.3:a:siyuan_note:siyuan:*:*:*:*:*:*:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3asiyuan_notesiyuan/</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>Fri, 04 Sep 2026 00:04:41 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3asiyuan_notesiyuan/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Second-Order SSTI in SiYuan via Attribute-View Template Columns</title><link>https://feed.craftedsignal.io/briefs/2026-09-siyuan-ssti/</link><pubDate>Fri, 04 Sep 2026 00:04:41 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-siyuan-ssti/</guid><description>SiYuan kernel is vulnerable to a second-order SSTI via the queryBlocks template function, allowing attackers to achieve arbitrary SQL execution upon rendering imported malicious content.</description><content:encoded><![CDATA[<p>SiYuan note-taking software is susceptible to a second-order Server-Side Template Injection (SSTI) vulnerability, tracked as CVE-2026-72807. The vulnerability exists within Attribute-View (AV) template columns, which are live-evaluated during rendering. The <code>queryBlocks</code> template function, intended for database interaction, fails to use parameterized queries, instead performing raw string substitution into SQL statements.</p>
<p>While AV creation is restricted to administrators, the injection is delivered as a second-order threat. An attacker can craft a document or an AV package containing a malicious template column. When a victim imports this package and renders the associated Attribute-View, the malicious template executes arbitrary SQL against the application's read-write database handle. This allows for unauthorized data access across notebooks and potential write operations via statement stacking. The vulnerability affects the SiYuan kernel prior to version 0.0.0-20260723035036-0a176345e02a.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker constructs a SiYuan document or AV package containing a template column using the <code>queryBlocks</code> function.</li>
<li>The attacker injects malicious SQL commands as an argument to <code>queryBlocks</code> (e.g., <code>.action{range queryBlocks &quot;SELECT * FROM blocks...&quot;}</code>).</li>
<li>The malicious document or AV package is distributed to a victim via file import.</li>
<li>The victim imports the document into their local SiYuan instance.</li>
<li>The victim triggers the rendering of the Attribute-View (e.g., via <code>POST /api/av/renderAttributeView</code>).</li>
<li>The SiYuan kernel evaluates the template, substituting the malicious SQL string directly into the database query.</li>
<li>The SQLite engine executes the arbitrary SQL commands, potentially exfiltrating data or modifying the database.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation leads to unauthorized access to the victim's local SiYuan database. Because the <code>queryBlocks</code> function operates on a read-write database handle, an attacker can bypass access controls to read sensitive notes or perform write operations if statement stacking is supported by the SQLite implementation. The severity is bounded by the requirement for victim interaction (importing and rendering content).</p>
<h2 id="recommendation">Recommendation</h2>
<ol>
<li>Upgrade the SiYuan kernel to version 0.0.0-20260723035036-0a176345e02a or later to resolve CVE-2026-72807.</li>
<li>Implement strict input validation and sanitization for all imported document content and AV templates.</li>
<li>Replace raw string substitution in the <code>queryBlocks</code> function with proper parameterized query bindings.</li>
<li>Review and restrict the set of template functions available within Attribute-View columns to prevent access to dangerous primitives.</li>
</ol>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>vulnerability</category><category>ssti</category><category>sql-injection</category><category>rce</category></item></channel></rss>