Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain SiYuan admin credentials
-
DeliveryAuthenticate to SiYuan HTTP API
-
ExploitCraft POST request to /api/search/removeTemplate
-
ExecutionSupply arbitrary absolute filesystem path as parameter
-
Persistos.RemoveAll recursively deletes target path
-
ImpactCritical files or directories permanently destroyed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires valid SiYuan administrator credentials - confirmed by the CVSS PR:H metric. The attacker must reach the SiYuan backend HTTP API (default behavior is LAN/localhost exposure, not public internet), authenticate successfully, and supply an arbitrary absolute filesystem path as the template path parameter to /api/search/removeTemplate. What limits exploitation: (1) admin-level authentication is mandatory, ruling out unauthenticated or low-privilege attacks; (2) impact is bounded by the OS-level permissions of the SiYuan kernel process - a least-privilege process account restricts reachable filesystem paths; (3) SiYuan is typically deployed as a local or LAN-only tool, reducing external network exposure. No special non-default configuration is required for the vulnerability itself - any standard SiYuan deployment with the API accessible is susceptible once admin credentials are obtained. |
| Impact | The CVSS 4.0 score of 8.4 (AV:N/AC:L/AT:N/PR:H/UI:N) reflects a real but constrained threat: exploitation requires valid admin-level credentials, which limits the attacker population to insiders, credential-theft scenarios, or compromised sessions. The score is elevated by severe integrity and availability impacts on both the vulnerable system (VI:H/VA:H) and subsequent systems (SI:H/SA:H) - the latter is realistic when SiYuan runs on a shared server where the kernel process has broad filesystem rights, enabling deletion of OS-critical or shared-storage paths. EPSS data was not provided in the input, so exploitation probability cannot be quantified. No CISA KEV listing and no public POC exist at time of analysis, indicating low opportunistic risk. The downstream scope change signals may be overstated for isolated single-user desktop deployments where the kernel process is OS-user-confined; organizations running SiYuan as a multi-user or server-hosted instance should treat this as higher priority. Active exploitation is unconfirmed - this is a real-world priority driven by insider threat and credential-compromise scenarios, not mass scanning. |
| Exploit ScenarioDerived | An attacker who has obtained SiYuan administrator credentials - through phishing, credential reuse, or insider access - authenticates to the SiYuan HTTP API and submits a POST request to /api/search/removeTemplate with a path parameter set to a critical absolute filesystem path such as /etc or the application's data root. The SiYuan kernel calls os.RemoveAll on that path without validation, recursively and permanently deleting the target. No public exploit code has been identified, but the attack requires only standard HTTP tooling and valid admin credentials. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 22, 2026
Arbitrary file deletion in SiYuan before v3.7.4 allows authenticated administrators to recursively destroy any file or directory accessible to the SiYuan kernel process by supplying an unsanitized absolute path to the /api/search/removeTemplate endpoint, which passes the value directly to Go's os.RemoveAll. All SiYuan releases prior to v3.7.4 are confirmed affected per vendor advisory GHSA-w938-w7m4-qrj8. No public exploit or CISA KEV listing exists at time of analysis, but the high integrity and availability impact - including potential downstream filesystem destruction beyond the application - makes admin credential hygiene the critical control.
RemediationAI
Upgrade to SiYuan v3.7.4 or later - the vendor-released patch that resolves this issue, as confirmed by the advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-w938-w7m4-qrj8. If immediate upgrade is not feasible, restrict network access to the SiYuan API port using a host-based firewall or reverse proxy so only explicitly trusted users can reach the /api/search/removeTemplate endpoint; note this does not protect against malicious authenticated admins or compromised sessions. Running the SiYuan kernel under a least-privilege OS account confined to the SiYuan data directory (e.g., via Linux filesystem permissions or a dedicated service account) limits the blast radius of any exploitation - the trade-off is added operational complexity during setup. Audit existing SiYuan admin accounts and rotate credentials as a compensating control while patching is arranged.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SiYuan is a self-hosted personal knowledge management system with a Go backend kernel that exposes a local HTTP API. The /api/search/removeTemplate endpoint is intended to remove template files by path, but it accepts caller-supplied paths without canonicalization, allow-list validation, or confinement to a safe base directory before invoking os.RemoveAll - Go's recursive directory removal function. CWE-22 (Path Traversal) identifies the root cause class: the application trusts user-supplied path components without verifying they resolve within an authorized subtree. The CPE cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:* covers all platform variants (Linux, macOS, Windows), and the blast radius scales directly with the OS-level filesystem permissions granted to the SiYuan kernel process at startup.
Know when Siyuan gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Admin credentials required (PR:H); scope change because kernel process can delete OS files beyond application boundary; no confidentiality impact since deletion does not expose data.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
SiYuan versions before 3.7.4 contain an arbitrary file deletion vulnerability allowing privileged users to destroy any file accessible to the application process, including critical data and system files. Organizations running vulnerable instances risk unrecoverable data loss and operational disruption if administrator credentials are compromised or privileges are misused. Remediation requires immediate access controls and upgrade planning.
No vendor-released patch identified at time of analysis. Interim mitigations include: restrict administrative access to SiYuan through network segmentation and firewall rules limiting connectivity to authorized personnel only; enforce principle of least privilege for administrative accounts; implement comprehensive audit logging of the /api/search/removeTemplate endpoint and all administrator authentication events to detect suspicious activity; maintain frequent offline backups of SiYuan-managed data independent of the running application; run SiYuan in containerized or filesystem-isolated environments to contain potential damage from file operations.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
EUVD-2026-64269
GHSA-f62p-x567-xj6g
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB