Kernel: SiYuan MCP asset.upload Reads Arbitrary Absolute File Paths (Workspace Boundary Bypass)
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.
AI Analysis
Technical Summary
The SiYuan MCP asset.upload tool accepts a comma-separated list of absolute file paths and normalizes them using filepath.Abs without enforcing workspace boundary or sensitive path checks. The InsertLocalAssets function then opens and copies these files into the workspace assets directory. Unlike other AI-plane file tools in SiYuan, asset.upload lacks any path restriction, allowing an attacker who can prompt-inject the AI Agent to cause it to upload arbitrary sensitive files. This is a residual issue following partial remediation of CVE-2026-66012, where asset.upload was not given the necessary boundary checks. The vulnerability was confirmed in version 3.8.0 and fixed in 3.8.1.
Potential Impact
This vulnerability allows an attacker with the ability to influence the AI Agent and obtain user approval to read arbitrary local files on the victim's system by uploading them into the workspace. Sensitive files such as SSH private keys, AWS credentials, and system files can be exfiltrated through the workspace's note export or sync features. The impact is a confidentiality breach. There is no direct impact on integrity or availability. The exploitation probability is low due to the need for user approval and specific Agent/MCP configuration.
Mitigation Recommendations
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.
Kernel: SiYuan MCP asset.upload Reads Arbitrary Absolute File Paths (Workspace Boundary Bypass)
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.
CVSS v3.1
Score 5.7medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The SiYuan MCP asset.upload tool accepts a comma-separated list of absolute file paths and normalizes them using filepath.Abs without enforcing workspace boundary or sensitive path checks. The InsertLocalAssets function then opens and copies these files into the workspace assets directory. Unlike other AI-plane file tools in SiYuan, asset.upload lacks any path restriction, allowing an attacker who can prompt-inject the AI Agent to cause it to upload arbitrary sensitive files. This is a residual issue following partial remediation of CVE-2026-66012, where asset.upload was not given the necessary boundary checks. The vulnerability was confirmed in version 3.8.0 and fixed in 3.8.1.
Potential Impact
This vulnerability allows an attacker with the ability to influence the AI Agent and obtain user approval to read arbitrary local files on the victim's system by uploading them into the workspace. Sensitive files such as SSH private keys, AWS credentials, and system files can be exfiltrated through the workspace's note export or sync features. The impact is a confidentiality breach. There is no direct impact on integrity or availability. The exploitation probability is low due to the need for user approval and specific Agent/MCP configuration.
Mitigation Recommendations
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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-p23f-cm6q-2qp8
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6ac139a9a43b0b3b89d69ac7
Added to database: 10/03/2026, 17:21:45 UTC
Last enriched: 10/03/2026, 17:38:28 UTC
Last updated: 10/03/2026, 22:37:37 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.