Skip to main content
← All vulnerabilities
CVE-2026-23851GO-2026-4346GHSA-94C7-G2FJ-7682

SiYuan Vulnerable to Arbitrary File Read via File Copy Functionality

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.5.4, 0.0.0-20260118092521-f8f4b517077b
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • siyuan-note siyuan

    fixed in 3.5.4

  • github.com/siyuan-note/siyuan/kernelGo

    fixed in 0.0.0-20260118092521-f8f4b517077b

References 4

GitHub · siyuan-note/siyuan