CVE-2026-74798
published critical CVSS 4.0 · 9.3SiYuan kernel Path Traversal via database_clean MCP tool
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| siyuan-note | — | siyuan0 to < 3.7.4 (affected · semver) · 3.7.4 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.7 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| siyuan-note | siyuan | 0 to < 3.7.4 (affected · semver)3.7.4 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2- GitHub Security Advisory (GHSA-43jx-gxq4-jpjc) https://github.com/siyuan-note/siyuan/security/advisories/GHSA-43jx-gxq4-jpjc
- VulnCheck Advisory: SiYuan kernel Path Traversal via database_clean MCP tool https://www.vulncheck.com/advisories/siyuan-kernel-path-traversal-via-database-clean-mcp-tool
Provider assertions
2VulnCheck · cna
SiYuan kernel Path Traversal via database_clean MCP tool
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3b03f2314c98088a0d35289f29d4778961ddace0a8df38578586f0406781ed38
- Ingested
- 23 Sep 2026, 09:31:28 UTC
- Source record
- Official CVE record