CVE Catalog

CVE-2026-74798

HighCVSS 8.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.37%

30th percentile - higher than 30% of all known CVEs

Summary

SiYuan kernel before v3.7.4 contains a path traversal vulnerability in the database_clean MCP tool. The tool only checks if the id parameter is not empty before passing it to RemoveUnusedAttributeView, which builds a filesystem path without validating the ID format. An authenticated MCP client can use path traversal sequences to copy an arbitrary readable file into SiYuan's history directory (arbitrary file read) and then delete the original file (arbitrary file deletion).

Risk Assessment

An attacker can read and delete sensitive files on the server, potentially leading to data leakage or service disruption.

Recommendation

Update SiYuan to version 3.7.4 or later, which includes a fix for this issue.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS