CVE-2026-116168

SiYuan before v3.8.7 Path Traversal Local File Read via MCP Asset Tool

Published Oct 25, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
SiYuan before 3.8.7 contains a path traversal vulnerability in the MCP asset tool because validateAssetUploadPaths relies on an incomplete sensitive-path blacklist that omits .env and other secret files. Authenticated attackers driving the MCP asset upload action can copy such local files into the workspace and read them back via /assets/ over HTTP.

Analysis

AI-generated

Technical impact

SiYuan versions earlier than 3.8.7 allow an authenticated user to influence the MCP asset upload process. The validateAssetUploadPaths function lacks a comprehensive blacklist, permitting uploads of sensitive files such as .env. Once uploaded, these files can be accessed through the public /assets/ HTTP path, exposing local file contents and compromising confidentiality.

Affected Systems

The affected product is SiYuan, specifically all releases prior to 3.8.7. Users running any older version risk unauthorized read access to local secrets and other files through the MCP asset upload interface.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. EPSS information is not available, and the vulnerability is not listed in CISA KEV, suggesting limited known exploitation. The attack requires authentication to use the MCP asset upload feature; an attacker can then upload a crafted file path to read arbitrary local files via the exposed HTTP endpoint.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.8.7 or newer to eliminate the path traversal flaw.
  • If immediate upgrade is not possible, restrict MCP asset upload capabilities to trusted administrative accounts or disable the feature entirely to prevent write access to sensitive files.
  • Ensure that the /assets/ endpoint enforces strict path validation and does not allow traversal, or apply a patch that implements a comprehensive blacklist to block secret file uploads.

Generated by OpenCVE AI on October 25, 2026 at 16:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description SiYuan before 3.8.7 contains a path traversal vulnerability in the MCP asset tool because validateAssetUploadPaths relies on an incomplete sensitive-path blacklist that omits .env and other secret files. Authenticated attackers driving the MCP asset upload action can copy such local files into the workspace and read them back via /assets/ over HTTP.
Title SiYuan before v3.8.7 Path Traversal Local File Read via MCP Asset Tool
First Time appeared B3log
B3log siyuan
Weaknesses CWE-22
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 4, 2026, 4:06 PM
Reserved
Oct 25, 2026, 12:24 PM
Status
Deferred
Published
Oct 25, 2026, 2:16 PM
Modified
Nov 4, 2026, 4:17 PM