{"id":"CVE-2026-23851","published":"2026-01-19T19:57:29Z","modified":"2026-01-20T20:05:11Z","title":"SiYuan Vulnerable to Arbitrary File Read via File Copy Functionality","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00619,"percentile":0.43924,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-94c7-g2fj-7682","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/siyuan-note/siyuan/issues/16860","tags":["x_refsource_MISC"]},{"url":"https://github.com/siyuan-note/siyuan/commit/b2274baba2e11c8cf8901b0c5c871e5b27f1f6dd","tags":["x_refsource_MISC"]},{"url":"https://github.com/siyuan-note/siyuan/commit/f8f4b517077b92c90c0d7b51ac11be1b34b273ad","tags":["x_refsource_MISC"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":8.78},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.5.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-20T19:37:06.552446Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260118092521-f8f4b517077b"],"patched":["0.0.0-20260118092521-f8f4b517077b"],"from":["GHSA-94c7-g2fj-7682","GO-2026-4346"],"provenance":"source"}],"summary":{"text":"The SiYuan personal knowledge management system, in versions prior to 3.5.4, has a path validation flaw in the globalCopyFiles function of its file API (api/file.go), which accepts source paths from the request body without checking that they lie within the authorized workspace directory. An authenticated user over the network can exploit this to copy files from any location on the server's filesystem into the application's workspace, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:43Z"},"euvd":{"id":"EUVD-2026-3291","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-siyuan-note-siyuan-cve-2026-23850","children":[{"from":"CVE-2026-23851","to":"CVE-2026-30869","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/util/path.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/b2274baba2e11c8cf8901b0c5c871e5b27f1f6dd","https://github.com/siyuan-note/siyuan/commit/f8f4b517077b92c90c0d7b51ac11be1b34b273ad","https://github.com/siyuan-note/siyuan/commit/6feb2bc8ec2dc2d58d62faad68caeec705dbf62d"],"basis":"shared function","functions":["IsSensitivePath"]}]},{"from":"CVE-2026-23851","to":"CVE-2026-41894","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/util/path.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/b2274baba2e11c8cf8901b0c5c871e5b27f1f6dd","https://github.com/siyuan-note/siyuan/commit/f8f4b517077b92c90c0d7b51ac11be1b34b273ad","https://github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7"],"basis":"shared function","functions":["IsSensitivePath"]}]},{"from":"CVE-2026-23851","to":"CVE-2026-65607","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/util/path.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/b2274baba2e11c8cf8901b0c5c871e5b27f1f6dd","https://github.com/siyuan-note/siyuan/commit/f8f4b517077b92c90c0d7b51ac11be1b34b273ad","https://github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7","https://github.com/siyuan-note/siyuan/commit/b763d787d1f2b862c577049e4ee147c5857fe413"],"basis":"shared function","functions":["IsSensitivePath"]}]}],"packageHistory":[{"cve":"CVE-2026-23645","published":"2026-01-16","fixed":"0.0.0-20260116101155-11115da3d0de","kev":false},{"cve":"CVE-2026-23847","published":"2026-01-19","fixed":"0.0.0-20260118021606-5c0cc375b475","kev":false},{"cve":"CVE-2026-23850","published":"2026-01-19","fixed":"0.0.0-20260118092326-b2274baba2e1","kev":false,"link":{"from":"CVE-2026-23850","to":"CVE-2026-23851","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260118092326-b2274baba2e1","toFixed":"0.0.0-20260118092521-f8f4b517077b","daysApart":0}]}},{"cve":"CVE-2026-23851","published":"2026-01-19","fixed":"0.0.0-20260118092521-f8f4b517077b","kev":false},{"cve":"CVE-2026-29183","published":"2026-03-06","fixed":"0.0.0-20260304034809-d68bd5a79391","kev":false,"link":{"from":"CVE-2026-23851","to":"CVE-2026-29183","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260118092521-f8f4b517077b","toFixed":"0.0.0-20260304034809-d68bd5a79391","daysApart":46}]}},{"cve":"CVE-2026-31807","published":"2026-03-10","fixed":"0.0.0-20260310025236-297bd526708f","kev":false},{"cve":"CVE-2026-31809","published":"2026-03-10","fixed":"0.0.0-20260310025236-297bd526708f","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}