SiYuan Note Stored Cross-Site Scripting Vulnerability via Unrestricted SVG Upload

Vulnerability

A stored cross-site scripting vulnerability has been identified in SiYuan Note versions prior to 3.5.4-dev2. The issue arises because the application fails to sanitize uploaded SVG files, allowing users to execute arbitrary JavaScript in the context of their authenticated session. This vulnerability can be exploited by uploading a malicious SVG file, which is then processed by the application without proper security checks.

Impact

Exploitation of this vulnerability allows for the execution of embedded JavaScript in the user's browser, potentially leading to unauthorized actions or data exposure within the context of the user's session.

Reproduction

To reproduce this vulnerability, upload a malicious SVG file containing JavaScript into a note. Once the file is uploaded, export it, and the embedded script will execute in the browser.

Remediation

Users can update to SiYuan version 3.5.4-dev2 or later, where this vulnerability has been fixed.

Added: Jan 16, 2026, 8:37 PM
Updated: Jan 16, 2026, 8:37 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
1.7
exploitability
5.8
remediation
7.7
relevance
2.2
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.