SiYuan MCP asset.upload 任意绝对路径读取漏洞
Start here
2026年10月3日,GitHub 安全公告披露思源笔记(SiYuan)MCP 工具 asset.upload 存在工作区边界绕过漏洞。该工具在 kernel/mcp/tools/asset.go:195 仅用 filepath.Abs 规范化路径,未做 IsSubPath 或 IsSensitivePath 检查,随后 InsertLocalAssets 会 os.Open 这些路径并把内容复制进工作区,从而可读取任意绝对路径文件。影响版本为 3.8.0 及以下,已在 3.8.1 修复。
Generated by AI from reports · Updated 11 days ago
Progress timeline
- GitHub 安全公告SelectedSiYuan Note's MCP asset.upload has a workspace boundary bypass vulnerability, fixed in 3.8.1
SiYuan Note's MCP tool asset.upload lacks workspace boundary validation and can read files at arbitrary absolute paths; affected versions are 3.8.0 and below, fixed in 3.8.1. This tool, at kernel/mcp/tools/asset.go:195, only normalizes paths with filepath.Abs and does not perform IsSubPath or IsSensitivePath checks; subsequently, InsertLocalAssets will os.Open these paths and copy their contents into the workspace assets/ directory. An attacker can use prompt injection to make the Agent call this tool with files such as /Users/victim/.ssh/id_rsa, ~/.aws/credentials, or /etc/passwd as the files parameter, while the confirmation dialog only shows a category-level prompt and does not display the real source path, making it difficult for users to make an informed decision.
Related discussion
Attention trend
New sources per day
- Oct 3: 1 new sources (1 outlets, 0 accounts)
- Oct 4: 0 new sources (0 outlets, 0 accounts)
- Oct 5: 0 new sources (0 outlets, 0 accounts)
- Oct 6: 0 new sources (0 outlets, 0 accounts)
- Oct 7: 0 new sources (0 outlets, 0 accounts)
- Oct 8: 0 new sources (0 outlets, 0 accounts)
- Oct 9: 0 new sources (0 outlets, 0 accounts)
- Oct 10: 0 new sources (0 outlets, 0 accounts)
- Oct 11: 0 new sources (0 outlets, 0 accounts)
- Oct 12: 0 new sources (0 outlets, 0 accounts)
- Oct 13: 0 new sources (0 outlets, 0 accounts)
- Oct 14: 0 new sources (0 outlets, 0 accounts)