CVE-2026-23851
SiYuan Vulnerable to Arbitrary File Read via File Copy Functionality
Reported by github_m · Published January 19, 2026
SiYuan is a personal knowledge management system. Versions prior to 3.5.4 contain a logic vulnerability in the /api/file/globalCopyFiles endpoint. The function allows authenticated users to copy files from any location on the server's filesystem into the application's workspace without proper path validation. The vulnerability exists in the api/file.go source code. The function globalCopyFiles accepts a list of source paths (srcs) from the JSON request body. While the code checks if the source file exists using filelock.IsExist(src), it fails to validate whether the source path resides within the authorized workspace directory. Version 3.5.4 patches the issue.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| siyuan-note | siyuan | < 3.5.4 |
| github.com | siyuan-note/siyuan/kernel | 0 |
| siyuan-note | siyuan | 0 |
Timeline
- Jan 19, 2026 CVE Published
- Jan 19, 2026 PoC Published (6 in total, the first dated here)
- Jan 20, 2026 EPSS Score (30 in total, the first dated here)
- Jan 20, 2026 CVE Updated
- Jan 30, 2026 Security Advisory
- Mar 22, 2026 Coalition ESS Score (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-23851
vulnetix vdb fixes CVE-2026-23851
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-23851/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-94c7-g2fj-7682 x_refsource_CONFIRM
- https://github.com/siyuan-note/siyuan/issues/16860 x_refsource_MISC
- https://github.com/siyuan-note/siyuan/commit/b2274baba2e11c8cf8901b0c5c871e5b27f1f6dd x_refsource_MISC
- https://github.com/siyuan-note/siyuan/commit/f8f4b517077b92c90c0d7b51ac11be1b34b273ad x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-23851 advisory
- https://github.com/advisories/GHSA-94c7-g2fj-7682 advisory
- https://github.com/siyuan-note/siyuan url