What’s Vulnerable › Vulnerabilities
CVE-2026-74798: SiYuan kernel Path Traversal via database_clean MCP tool
- Severity: high (CVSS 8.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-17 · updated 2026-08-26
- Weakness: CWE-22
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.
Affected products
- siyuan-note siyuan: before 3.7.4 — fixed in 3.7.4
How to fix
Upgrade to a fixed version: siyuan-note siyuan 3.7.4. Check the vendor advisory for mitigations.
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-43jx-gxq4-jpjc
- https://www.vulncheck.com/advisories/siyuan-kernel-path-traversal-via-database-clean-mcp-tool
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-43jx-gxq4-jpjc
Get alerted when CVE-2026-74798 or the next vulnerability affects your stack