CVE-2026-23851
HIGH 8.3CVSS 4.0SiYuan Vulnerable to Arbitrary File Read via File Copy Functionality
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.
- Published
- 19 Jan 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-94c7-g2fj-7682GO-2026-4346
- Sources
- NVDJSONOSV GHSA-94c7-g2fj-7682JSONOSV GO-2026-4346JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | b3log | siyuancpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:* |
< 3.5.4 | 3.5.4 |
| OSV | Go | github.com/siyuan-note/siyuan/kernel | < 0.0.0-20260118092521-f8f4b517077b | 0.0.0-20260118092521-f8f4b517077b |
References
- https://github.com/siyuan-note/siyuan/commit/b2274baba2e11c8cf8901b0c5c871e5b27f1f6dd · Patch, WEB
- https://github.com/siyuan-note/siyuan/commit/f8f4b517077b92c90c0d7b51ac11be1b34b273ad · Patch, WEB
- https://github.com/siyuan-note/siyuan/issues/16860 · Issue Tracking, Patch, WEB
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-94c7-g2fj-7682 · Exploit, Patch, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-23851 · ADVISORY
- https://github.com/siyuan-note/siyuan · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 19 Jan 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 21 Jan 2026)