Live threats

All CVEs / B3log

CVE-2026-23851B3log Siyuan

High 8.3

Priority
50
CVSS 4.0
8.3
EPSS
—
Auth required
Yes
Published
Jan 19, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
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/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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Siyuan.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260118092521-f8f4b517077b 0.0.0-20260118092521-f8f4b517077b go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260118092521-f8f4b517077b
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260118092521-f8f4b517077b 0.0.0-20260118092521-f8f4b517077b go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260118092521-f8f4b517077b

Per OSV / GitHub Advisories (GHSA-94c7-g2fj-7682, GO-2026-4346). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
b3logsiyuan< 3.5.4

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.