github.com/siyuan-note/siyuan/kernel · Kernel: SiYuan MCP asset.upload Reads Arbitrary Absolute File Paths (Workspace Boundary Bypass)
Affects github.com/siyuan-note/siyuan/kernelSource GCVE Database
Mentioned vulnerabilities
CVSS 5.7 Medium : upgrade to 0.0.0-20260813142104-b26a4a307b8a when convenient.
Data as of 3 Oct 2026, 17:38 UTC
- Patch
- Available – fixed in 0.0.0-20260813142104-b26a4a307b8a
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:NWhat to do
Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260813142104-b26a4a307b8a.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/siyuan-note/siyuan/kernel | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in SiYuan version 3.8.1 that adds workspace boundary checks to the asset.upload tool, preventing arbitrary absolute path reads. Users should upgrade to version 3.8.1 or later to remediate this vulnerability. Until patched, administrators should be cautious about enabling the Agent/MCP interface and ensure users are aware of the risks of approving asset upload prompts, as the confirmation does not reveal the actual file paths being accessed.
Description
SiYuan MCP's asset.upload tool allows reading arbitrary absolute file paths without workspace boundary checks, enabling an attacker who can influence the AI Agent to upload sensitive local files into the workspace. This vulnerability affects versions up to 3.8.0 and was patched in version 3.8.1. Exploitation requires user approval of a generic confirmation prompt, making the attack vector reliant on prompt injection and user interaction. The vulnerability leads to confidentiality breaches by exposing sensitive files such as SSH keys and cloud credentials via the workspace file API.
References
- github.com/siyuan-note/siyuan/security/advisories/GHSA-p23f-cm6q-2qp8 (opens in a new tab)
- github.com/siyuan-note/siyuan/commit/b26a4a307b8ae5067387ea76ce1fad6b7f4bf9e7 (opens in a new tab)
- github.com/siyuan-note/siyuan (opens in a new tab)
- github.com/siyuan-note/siyuan/releases/tag/v3.8.1 (opens in a new tab)