Summary
SiYuan versions before 3.8.10 use an incomplete deny-list in IsSensitivePath, allowing authenticated administrators to copy files to sensitive paths outside the workspace. The CVSS 4.0 score is 9.3 (critical), as assigned by CNA:VulnCheck.
What happened
SiYuan's IsSensitivePath function uses an incomplete deny-list that omits shell-initialization files such as .zshenv and .bash_profile, as well as the ~/.local directory. An authenticated administrator can call /api/file/copyFile with an absolute destination outside the workspace to write content to those locations. That content executes with the user's privileges on the next shell or login. The weakness is classified as CWE-22 (path traversal).
Why it matters
Writing files outside the workspace can lead to code execution with the privileges of the user running SiYuan. Exploitation requires authentication as an administrator, and the CVSS vector indicates local access. The CVSS 4.0 score is 9.3 with vector CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H, and severity is critical. CISA's KEV catalog does not list this vulnerability as exploited, and the source provides no indication of active exploitation.
Affected products and versions
siyuan (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 lists version 3.8.10 as unaffected, so the vendor addresses the issue in that version. More details are in the vendor advisory: https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4xfj-946m-258h. The source does not state other mitigations.
Fixed in: 3.8.10
Sources and references
Weaknesses (CWE): CWE-22
Relevant change history
Published
Advisory published.