All vulnerabilities

Go

CVE-2026-60083

SiYuan: MCP file tool's blocklist is incomplete relative to the HTTP file API it claims to align with, exposing publish-mode passwords and other sensitive workspace files

Severity
Medium 4.9
Published
27 Oct 2026
Last changed
5 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.0.0-20260808051406-3542530c505f
Exploit chance
0.4% in the next 30 daysHigher than 33% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Incorrect authorization (CWE-863)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-c8r8-95hg-mp34, GO-2026-6863
Sources
OSV.dev and GitHub

Description

kernel/mcp/tools/file.go's resolvePath() includes an explicit comment stating its sensitive-path blocklist is meant to align with the HTTP file API's established blacklist (refuseToAccess() in kernel/api/file.go), following the remediation for GHSA-cvhv-7xhj-xjp8 ("Unauthenticated Administrator takeover exfiltrated via the MCP"), which specifically recommended restricting this tool's scope. In practice, the MCP tool implements only 1 of the 4 static blocklist entries the HTTP API enforces.

kernel/api/file.go refuseToAccess() blocks:

  • conf/conf.json (API token, cookie signing key, accessAuthCode)
  • data/snippets/conf.json
  • the entire data/templates directory
  • data/.siyuan/publishAccess.json
  • (dynamic, per-request) any path the current publish-mode session isn't authorized for

kernel/mcp/tools/file.go resolvePath() blocks only:

Items 2, 3, and 4 are absent. The tool's own list/read/grep/find actions remain fully functional against them.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
github.com/siyuan-note/siyuan/kernelGo · osv:Go:github.com/siyuan-note/siyuan/kernel
  • Every version before 0.0.0-20260808051406-3542530c505f

About github.com/siyuan-note/siyuan/kernel

References