Skip to main content

Kernel: SiYuan MCP asset.upload Reads Arbitrary Absolute File Paths (Workspace Boundary Bypass)

0
Medium
Published: 10/02/2026 (10/02/2026, 23:16:56 UTC)
Source: GCVE Database
Product: github.com/siyuan-note/siyuan/kernel

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

Affected software

Goghsa
github.com/siyuan-note/siyuan/kernel
Affected versions
<0.0.0-20260813142104-b26a4a307b8a

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/03/2026, 17:38:28 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses