Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-74798— SiYuan kernel Path Traversal via database_clean MCP tool

Quick assessment

Affected
siyuan-note siyuan
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

SiYuan是SiYuan团队开源的一款文档管理软件。 SiYuan 3.7.4之前版本存在路径遍历漏洞,该漏洞源于database_clean MCP工具中的路径遍历问题。该工具仅对id参数进行空字符串检查,未验证其是否符合节点ID格式,便通过RemoveUnusedAttributeView和filepath.Join构建文件系统路径,可能导致经身份验证的MCP客户端利用路径遍历序列复制进程可读的任意文件到历史目录并删除原始文件。

CVSS 8.7 · High EPSS 0.37% · P30

Affected Version Matrix 2

VendorProduct Version RangeStatus
siyuan-note siyuan < 3.7.4 affected
3.7.4 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-74798

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
SiYuan kernel Path Traversal via database_clean MCP tool
Source: CVE Program / CVE List V5
Vulnerability Description
SiYuan kernel before v3.7.4 contains a path traversal vulnerability in the database_clean MCP tool. The tool performs only an empty-string check on the id parameter before passing it to RemoveUnusedAttributeView (kernel/model/attribute_view.go), which builds a filesystem path via filepath.Join without validating that id matches SiYuan's node-ID format. An authenticated MCP client can supply path traversal sequences in id to cause the kernel to copy an arbitrary file readable by the process into SiYuan's history directory (arbitrary file read) and then delete the original file (arbitrary file deletion). The corresponding HTTP API handler was hardened in GHSA-7hm9-v7vf-7g4w, but this MCP caller was not.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
SiYuan 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
SiYuan是SiYuan团队开源的一款文档管理软件。 SiYuan 3.7.4之前版本存在路径遍历漏洞,该漏洞源于database_clean MCP工具中的路径遍历问题。该工具仅对id参数进行空字符串检查,未验证其是否符合节点ID格式,便通过RemoveUnusedAttributeView和filepath.Join构建文件系统路径,可能导致经身份验证的MCP客户端利用路径遍历序列复制进程可读的任意文件到历史目录并删除原始文件。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
siyuan-note siyuan 0 ~ 3.7.4 -

II. Public POCs for CVE-2026-74798

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-74798

登录查看更多情报信息。

Vendor Advisories for CVE-2026-74798 (2)

Same Patch Batch · siyuan-note · 2026-08-17 · 7 CVEs total

CVE-2026-74799 9.3 CRITICAL SiYuan before 3.7.4 Unauthenticated Debug Endpoint Information Disclosure
CVE-2026-74800 9.0 CRITICAL SiYuan before v3.7.4 Stored XSS via assets endpoint
CVE-2026-74801 8.2 HIGH SiYuan before 3.7.4 Local Privilege Escalation via elevator.exe
CVE-2026-74802 8.2 HIGH SiYuan 3.7.3 Cross-Site WebSocket Hijacking via network proxy
CVE-2026-74868 7.5 HIGH SiYuan before 3.7.4 Brute-Force Authentication via Publish Service
CVE-2026-74867 4.2 MEDIUM SiYuan before 3.7.4 Cross-Site Request Forgery via CheckAuth

IV. Related Vulnerabilities

V. Comments for CVE-2026-74798

No comments yet


Leave a comment