CVE-2026-59854: SiYuan: Incomplete IsSensitivePath denylist: globalCopyFiles reads home-dir credential dotfiles into the workspace
SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, POST /api/file/globalCopyFiles accepts attacker-supplied absolute source paths and relies on util.IsSensitivePath in kernel/util/path.go, whose denylist misses common home-directory credential files such as .git-credentials, .netrc, .pgpass, .kube/config, .docker/config.json, and .gnupg, allowing an authenticated administrator or API-token user to copy those files into the workspace and exfiltrate them through the file API. This issue is fixed in versions 3.7.1-alpha.2 and 3.7.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.7.1-alpha.2
Event History
Frequently Asked Questions
What is the severity of CVE-2026-59854?
CVE-2026-59854 has a medium severity rating of 4.9.
How do I fix CVE-2026-59854?
To fix CVE-2026-59854, upgrade to SiYuan version 3.7.1 or later.
What components are affected by CVE-2026-59854?
CVE-2026-59854 affects the globalCopyFiles functionality in SiYuan prior to version 3.7.1.
What does CVE-2026-59854 exploit?
CVE-2026-59854 exploits the incomplete denylist of sensitive paths that allows access to home-directory credential files.
Is CVE-2026-59854 related to remote code execution?
No, CVE-2026-59854 is not specifically categorized as a remote code execution vulnerability.