9.3critical
SiYuan kernel Path Traversal via database_clean MCP tool
- Severity
- 9.3critical CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.51% (higher than 36% of CVEs)
- Published
- Last changed
- Assigned by
- VulnCheck
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
| Product or package | Versions | Reported by |
|---|---|---|
| siyuan-note siyuan | before 3.7.4 Not affected: 3.7.4 | CVE List |
All scores
| VulnCheck | 9.3critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N |
| VulnCheck | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
References
| https://github.com/siyuan-note/siyuan/security/advisories/GHSA-43jx-gxq4-jpjc | exploit, vendor-advisory | |
| https://www.vulncheck.com/advisories/siyuan-kernel-path-traversal-via-database-clean-mcp-tool | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74798 changed 2026-08-18 | CVE Terms of Use |
| NVD | CVE-2026-74798 changed 2026-08-26 | Public domain |