Summary
SiYuan versions before 3.8.10 contain a stored cross-site scripting vulnerability in Attribute View column names that can lead to code execution on the desktop app. The CVSS 4.0 score is 9.4 (critical).
What happened
According to the description, SiYuan renders Attribute View column names unescaped in col.ts. An attacker can store malicious HTML in those names via addAttributeViewKey, .sy.zip import, or sync. When a victim adds or duplicates the column, insertAdjacentHTML runs JavaScript with Node.js privileges, enabling code execution on the desktop. The weakness is classified as CWE-79.
Why it matters
The described impact is code execution on the victim's desktop from stored content, which can arrive through import or sync and requires the user to add or duplicate the column. The CVSS 4.0 score is 9.4 (vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H, source: CNA VulnCheck) and severity is critical. CISA's KEV catalog does not list active exploitation, and the source provides no evidence that this was a zero-day.
Affected products and versions
siyuan (vendor: siyuan-note): versions before 3.8.10 (< 3.8.10). Version 3.8.10 is listed as unaffected.
| Product | Versions | Fixed in |
|---|---|---|
| siyuan-note siyuan | < 3.8.10 | — |
| siyuan-note siyuan | 3.8.10 | 3.8.10 |
Action recommended by the source
The source indicates that version 3.8.10 fixes the issue, and the vendor has published a security advisory (GHSA-vvqj-4crq-p53p) and a patch commit. The source does not state any other mitigations.
Fixed in: 3.8.10
Sources and references
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vvqj-4crq-p53p — CVE Program
- https://github.com/siyuan-note/siyuan/commit/9c24c3ddd8ded505bdeb66d3f318820a77f932b3 — CVE Program
Weaknesses (CWE): CWE-79
Relevant change history
Published
Advisory published.