Skip to content
OpenAdvisories
High · 8.3 CVE-2026-23851 EUVD-2026-3291GHSA-94c7-g2fj-7682GO-2026-4346

SiYuan Vulnerable to Arbitrary File Read via File Copy Functionality

Published Jan 19, 2026 · Updated Jan 20, 2026 · 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.

Affected products

VendorProductAffectedFixed
siyuan-note siyuan < 3.5.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260205T172317-150000.1.146.1 SUSE-SU-2026:0403-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260118092521-f8f4b517077b 0.0.0-20260118092521-f8f4b517077b GHSA-94c7-g2fj-7682

Advisories 2

References