CVE-2026-60084: SiYuan before v3.7.4 Arbitrary File Deletion via removeTemplate
SiYuan versions before v3.7.4 contain an arbitrary file deletion vulnerability in the /api/search/removeTemplate endpoint that accepts an unvalidated path parameter passed directly to os.RemoveAll. Authenticated admin attackers can supply absolute filesystem paths to recursively delete any file or directory the kernel process has permission to remove, anywhere on the host filesystem.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
SiYuanto a version that resolves this vulnerability.Fixed in 3.7.4 - Compensating control
Restrict access to the SiYuan endpoint /api/search/removeTemplate so only trusted, authenticated administrators can reach it.
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated administrator can exploit it remotely through the affected API endpoint. Exploitation does not require user interaction and has low attack complexity.
What level of access is needed for the deletion to succeed?
The vulnerable kernel process can recursively delete files or directories anywhere on the host filesystem, but only where that process has permission to remove them. The practical impact therefore depends on the operating-system privileges and filesystem access of the SiYuan process.
Are current releases affected?
The issue affects SiYuan versions before v3.7.4. Upgrading to v3.7.4 or later removes the stated affected version range.