CVE-2026-130683: SiYuan before 3.8.10 Path Traversal via /api/file/copyFile Deny-List Bypass
SiYuan before 3.8.10 uses an incomplete deny-list in IsSensitivePath that omits shell-initialization files such as .zshenv and .bashprofile, as well as ~/.local. Authenticated administrators can call /api/file/copyFile with an absolute destination outside the workspace to write payloads there, which execute as the user on the next shell or login.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated SiYuan administrator can exploit it. The attack requires the ability to invoke the /api/file/copyFile endpoint; it is not described as reachable by unauthenticated users.
What conditions make exploitation impactful?
The attacker must be able to supply an absolute destination path outside the workspace. Impact occurs when they write a payload to a shell-initialization or login-related file, such as .zshenv or .bash_profile, or under ~/.local, and the affected user subsequently starts a shell or logs in.
Are default protections sufficient?
No. The vulnerable IsSensitivePath deny-list is incomplete and does not block the identified shell-initialization files or ~/.local paths.
How can I determine whether an instance is affected?
Instances running SiYuan before 3.8.10 are affected. Review use of /api/file/copyFile for absolute destination paths outside the workspace, particularly writes targeting .zshenv, .bash_profile, or ~/.local.