Security mailing lists by PureSourceCode

CVE-2026-23851

HIGH 8.3CVSS 4.0

SiYuan 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD b3log siyuan
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.