Skip to content
MediumVulnerability

GHSA-p23f-cm6q-2qp8: SiYuan MCP asset.upload Reads Arbitrary Absolute File Paths (Workspace Boundary Bypass)

Published
Record updated
View JSON
Affected
  • github.com/siyuan-note/siyuan/kernel < 0.0.0-20260813142104-b26a4a307b8a
Fixed in
0.0.0-20260813142104-b26a4a307b8a
  • released August 13, 2026, 50 days before disclosure

Summary

SiYuan's MCP tool `asset.upload` accepts a comma-separated `files` list of absolute paths and performs no workspace boundary or sensitive-path check before `model.InsertLocalAssets` opens each file and copies it into the workspace `assets/` directory. An attacker who can steer the AI Agent through prompt injection could make it upload files such as `~/.ssh/id_rsa` into the workspace, where they become reachable. Affected versions are `<= 3.8.0`, and the issue is a residual gap from the remediation of CVE-2026-66012.

Mitigation

Fixed in 3.8.1.