<?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.3) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/siyuan--3.7.3/</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:22:38 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/siyuan--3.7.3/feed.xml" rel="self" type="application/rss+xml"/><item><title>CVE-2026-66394: SiYuan XSS Vulnerabilities in SVG Sanitization</title><link>https://feed.craftedsignal.io/briefs/2026-07-cve-2026-66394-siyuan-xss/</link><pubDate>Mon, 27 Jul 2026 16:22:38 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-cve-2026-66394-siyuan-xss/</guid><description>Authenticated attackers can exploit stored and reflected cross-site scripting (XSS) vulnerabilities, identified as CVE-2026-66394, in SiYuan versions prior to v3.7.3 by bypassing the application's SVG sanitization to execute arbitrary scripts within the application's origin, potentially leading to session hijacking and data exfiltration.</description><content:encoded><![CDATA[<p>SiYuan, an open-source personal knowledge management system, is affected by stored and reflected cross-site scripting (XSS) vulnerabilities, tracked as CVE-2026-66394, present in versions before 3.7.3. These vulnerabilities stem from an insufficient SVG sanitization process that allows authenticated attackers to bypass the application's HTML parser-based cleaner. Specifically, attackers can embed malicious script tags within seemingly innocuous SVG elements such as <code>&lt;desc&gt;</code>, <code>&lt;style&gt;</code>, or <code>&lt;noscript&gt;</code>. While the HTML parser might treat these as raw text, browsers interpret them as executable content when the SVG is served as <code>image/svg+xml</code>. This flaw enables the execution of arbitrary JavaScript within the application's origin, posing a significant risk for session hijacking, data exfiltration, or other client-side attacks against legitimate users.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An authenticated attacker logs into the vulnerable SiYuan application.</li>
<li>The attacker crafts a malicious SVG image file containing JavaScript payloads hidden within SVG elements like <code>&lt;desc&gt;</code>, <code>&lt;style&gt;</code>, or <code>&lt;noscript&gt;</code>.</li>
<li>The attacker uploads or inputs this malicious SVG content into the SiYuan application, exploiting either a stored or reflected XSS vector.</li>
<li>SiYuan's SVG sanitization mechanism fails to properly neutralize the embedded script tags, as its HTML parser-based cleaner is bypassed.</li>
<li>When a victim user subsequently views or interacts with the content containing the malicious SVG within the SiYuan application, their browser requests and renders the SVG as <code>image/svg+xml</code>.</li>
<li>The victim's browser interprets and executes the embedded script within the application's origin, allowing the attacker to perform actions such as stealing session cookies, redirecting the user, or defacing the application interface.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The successful exploitation of CVE-2026-66394 can lead to severe consequences, including unauthorized access to user accounts through session hijacking, sensitive data exfiltration from the application, or defacement of content. Given the CVSS v3.1 base score of 8.7 (High), this vulnerability presents a significant risk. Attackers, once authenticated, could leverage this to compromise other user sessions, manipulate displayed content, or launch further attacks within the affected application's trust boundary. As a personal knowledge management system, SiYuan often stores sensitive personal or organizational data, making such a compromise highly impactful for individual users and potentially for organizations relying on the platform.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade SiYuan to version 3.7.3 or newer immediately to mitigate the vulnerabilities described in CVE-2026-66394.</li>
<li>Implement robust input validation and output encoding for all user-supplied content, especially when handling SVG files, to prevent similar bypasses in web applications.</li>
<li>Ensure that content security policies (CSPs) are configured to restrict script execution sources to trusted domains, limiting the potential impact of client-side scripting vulnerabilities.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>xss</category><category>web-application</category><category>vulnerability</category><category>svg-sanitization</category></item></channel></rss>