CVE-2026-59854: CWE-693: Protection Mechanism Failure in siyuan-note siyuan
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.
AI Analysis
Technical Summary
SiYuan, an open-source personal knowledge management system, has a vulnerability (CVE-2026-59854) in versions before 3.7.1 where the POST /api/file/globalCopyFiles endpoint accepts attacker-supplied absolute source paths. The underlying protection relies on util.IsSensitivePath denylist in kernel/util/path.go, which omits several common credential files such as .git-credentials, .netrc, .pgpass, .kube/config, .docker/config.json, and .gnupg. This flaw enables an authenticated administrator or API-token user to copy these sensitive files into the workspace and exfiltrate them via the file API. The vulnerability is classified as CWE-693 (Protection Mechanism Failure) and has a CVSS 3.1 base score of 4.9 (medium severity). The issue is resolved in versions 3.7.1-alpha.2 and 3.7.1.
Potential Impact
An authenticated administrator or user with an API token can exploit this vulnerability to copy sensitive credential files from the home directory into the workspace. This can lead to exposure and exfiltration of sensitive credentials such as Git, database, Kubernetes, Docker, and GnuPG configuration files. The confidentiality of these credentials is compromised, but there is no direct impact on integrity or availability reported.
Mitigation Recommendations
Upgrade SiYuan to version 3.7.1-alpha.2 or 3.7.1 or later, where this vulnerability is fixed. Since no official patch link or advisory is provided, verify the upgrade from the vendor's official releases. Until upgraded, restrict access to authenticated administrator and API-token users to trusted personnel only to reduce risk.
CVE-2026-59854: CWE-693: Protection Mechanism Failure in siyuan-note siyuan
Description
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.
CVSS v3.1
Score 4.9medium
Affected software
pkg:github/siyuan-note/siyuanRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
SiYuan, an open-source personal knowledge management system, has a vulnerability (CVE-2026-59854) in versions before 3.7.1 where the POST /api/file/globalCopyFiles endpoint accepts attacker-supplied absolute source paths. The underlying protection relies on util.IsSensitivePath denylist in kernel/util/path.go, which omits several common credential files such as .git-credentials, .netrc, .pgpass, .kube/config, .docker/config.json, and .gnupg. This flaw enables an authenticated administrator or API-token user to copy these sensitive files into the workspace and exfiltrate them via the file API. The vulnerability is classified as CWE-693 (Protection Mechanism Failure) and has a CVSS 3.1 base score of 4.9 (medium severity). The issue is resolved in versions 3.7.1-alpha.2 and 3.7.1.
Potential Impact
An authenticated administrator or user with an API token can exploit this vulnerability to copy sensitive credential files from the home directory into the workspace. This can lead to exposure and exfiltration of sensitive credentials such as Git, database, Kubernetes, Docker, and GnuPG configuration files. The confidentiality of these credentials is compromised, but there is no direct impact on integrity or availability reported.
Mitigation Recommendations
Upgrade SiYuan to version 3.7.1-alpha.2 or 3.7.1 or later, where this vulnerability is fixed. Since no official patch link or advisory is provided, verify the upgrade from the vendor's official releases. Until upgraded, restrict access to authenticated administrator and API-token users to trusted personnel only to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T15:41:53.606Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a50252a68715ace43310cef
Added to database: 07/09/2026, 22:48:10 UTC
Last enriched: 07/17/2026, 09:42:21 UTC
Last updated: 08/23/2026, 22:52:12 UTC
Views: 104
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.