Description
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.
Published: 2026-08-22
Score: 8.4 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan versions prior to 3.7.4 expose an endpoint that accepts a file path without validation and passes it to the OS remove function, allowing an attacker to delete any file or directory the process can reach. The impact is the loss of critical data, configuration files, or system components, potentially leading to a complete compromise of application integrity.

Affected Systems

The affected product is SiYuan Note (siyuan), specifically all releases before v3.7.4, on any platform where the server process runs.

Risk and Exploitability

The CVSS score of 8.4 indicates high severity, and while the EPSS score is not available, the lack of KEV listing suggests limited widespread exploitation evidence. The flaw requires authenticated administrator privileges and a path to the target, so the attack vector is internal through legitimate admin accounts. Successful exploitation results in arbitrary file deletion anywhere the server process can write.

Generated by OpenCVE AI on August 22, 2026 at 13:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.7.4 or later.
  • Restrict the /api/search/removeTemplate endpoint to trusted administrators and enforce strong authentication.
  • Monitor the file system for unexpected deletions and maintain regular backups to restore lost data.

Generated by OpenCVE AI on August 22, 2026 at 13:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 22 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
Description 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.
Title SiYuan before v3.7.4 Arbitrary File Deletion via removeTemplate
First Time appeared B3log
B3log siyuan
Weaknesses CWE-22
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 8.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:H'}

cvssV4_0

{'score': 8.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-22T12:26:41.175Z

Reserved: 2026-07-08T12:14:28.344Z

Link: CVE-2026-60084

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T13:16:39.407

Modified: 2026-08-22T13:16:39.407

Link: CVE-2026-60084

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T13:30:17Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')