# CVE-2026-23851: SiYuan Vulnerable to Arbitrary File Read via File Copy Functionality

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-19T19:57:29.460Z
- Modified: 2026-06-17T10:22:12.350Z
- Also known as: GHSA-94c7-g2fj-7682, GO-2026-4346
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.5.4
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260118092521-f8f4b517077b
- b3log siyuan: before 3.5.4

## Every score

- GitHub_M: CVSS:4.0 8.3 High `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`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-94c7-g2fj-7682> (exploit, advisory, patch, vendor-advisory, web)
- <https://github.com/siyuan-note/siyuan/issues/16860> (issue-tracking, patch, web)
- <https://github.com/siyuan-note/siyuan/commit/b2274baba2e11c8cf8901b0c5c871e5b27f1f6dd> (patch, web)
- <https://github.com/siyuan-note/siyuan/commit/f8f4b517077b92c90c0d7b51ac11be1b34b273ad> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23851> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-23851](https://www.cve.org/CVERecord?id=CVE-2026-23851), CVE Terms of Use, modified 2026-01-20
- GitHub Advisory Database: [GHSA-94c7-g2fj-7682](https://github.com/advisories/GHSA-94c7-g2fj-7682), CC-BY-4.0, modified 2026-02-03
- Go Vulnerability Database: [GO-2026-4346](https://pkg.go.dev/vuln/GO-2026-4346), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2026-23851](https://nvd.nist.gov/vuln/detail/CVE-2026-23851), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23851 · Whole record: https://cve.day/CVE-2026-23851.json · Rebuilt by cve.day 2026-11-25T22:59:12.954Z
