Summary
SiYuan versions before 3.8.10 contain a stored cross-site scripting vulnerability in genAVValueHTML() that, in the desktop app, can lead to OS command execution. The source lists a CVSS 4.0 score of 9.4 and critical severity.
What happened
The genAVValueHTML() function does not escape the image src attribute in Attribute View asset values. An attacker who can store such values can inject script through an image URL containing a double quote and an onerror handler. In the desktop app, that script can run OS commands via Node.js when the victim opens the bound note or the row attribute panel. The weakness is classified as CWE-79.
Why it matters
The source describes that exploitation can lead to OS command execution on the machine of a desktop app victim, which is consistent with the critical severity assigned (CVSS 4.0: 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, per CNA VulnCheck). It requires the attacker to be able to store asset values and the victim to open the affected note or panel. CISA's KEV catalog does not list this vulnerability as actively exploited, and the source does not indicate that it is 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 vendor indicates that version 3.8.10 contains the fix. The source links a vendor security advisory (GHSA-3qqh-fmrp-8vfq) and a patch commit: https://github.com/siyuan-note/siyuan/security/advisories/GHSA-3qqh-fmrp-8vfq and https://github.com/siyuan-note/siyuan/commit/3f4a2ca741411ebf0908ef1b7b86500a4ef4c20c. The source does not state other mitigations.
Fixed in: 3.8.10
Sources and references
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-3qqh-fmrp-8vfq — CVE Program
- https://github.com/siyuan-note/siyuan/commit/3f4a2ca741411ebf0908ef1b7b86500a4ef4c20c — CVE Program
Weaknesses (CWE): CWE-79
Relevant change history
Published
Advisory published.