SiYuan
CVE-2026-40318
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach publish/reader endpoint
-
DeliveryPOST removeUnusedAttributeView with ../ in id
-
ExploitPath escapes storage/av directory
-
ExecutionServer deletes conf/conf.json
-
PersistConfig and workspace data destroyed
-
ImpactApplication instability or forced recovery
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path traversal prevention
|
| Exploitation Conditions | Requires that the target reach the /api/av/removeUnusedAttributeView endpoint, which per the vendor advisory means the publish service is enabled or the attacker otherwise holds a Reader-role/publish-context session (CVSS PR:L confirms authenticated/low-privilege access). Given that access, no user interaction and no non-default file-format is needed: the attacker simply places ../ sequences in the JSON id value (e.g. ../../../conf/conf) to escape data/storage/av and delete any .json file the server process can write. Exploitation is limited to deleting files with a .json extension (the code appends ".json"), and to instances running 3.6.3 or earlier where the publish/endpoint is exposed to the attacker - instances with publish disabled and the endpoint restricted to trusted authenticated users are not remotely exploitable. |
| Impact | Signals are consistent and point to a real-but-moderate priority rather than an emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H, base 8.5) indicates network reach, low complexity, no user interaction, and a scope change (a flaw in the av component destroys files owned by the whole application, e.g. global config), but it requires some privilege (PR:L) - the advisory frames endpoint access via a Reader-role or publish context as a precondition. EPSS is very low (0.06%, 18th percentile) and CISA SSVC records Exploitation: none, Automatable: no, Technical Impact: partial, and the CVE is not in KEV - so no active exploitation is indicated. Confidentiality impact is nil (deletion only), so this is a destructive/availability threat, not data theft. The main caveat: a documented reproduction exists in the GHSA, lowering the barrier to opportunistic abuse against internet-exposed publish instances, so exposure of the publish service is the decisive risk factor. |
| Exploit ScenarioDerived | An attacker who can reach the publish/reader-enabled endpoint on an internet-exposed SiYuan instance sends a POST to /api/av/removeUnusedAttributeView with {"id": "../../../conf/conf"}, causing the server to delete conf/conf.json outside the storage/av directory. Repeated requests can wipe workspace metadata and application state, forcing recovery or causing persistent instability. The GHSA advisory publishes the exact reproduction request, so a working exploit is effectively public. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Arbitrary server-side file deletion in SiYuan (b3log/SiYuan) versions 3.6.3 and prior lets a low-privileged actor with access to the /api/av/removeUnusedAttributeView endpoint - such as a Reader-role or publish context - supply an id parameter containing ../ sequences to escape the storage/av directory and delete any .json file on the server, including conf/conf.json and workspace metadata. The GitHub Security Advisory (GHSA-vw86-c94w-v3x4) includes step-by-step reproduction, so publicly available exploit code exists, but there is no public exploit identified as weaponized and SSVC exploitation status is 'none'; EPSS is low at 0.06%. Fixed in version 3.6.4.
RemediationAI
Vendor-released patch: upgrade to SiYuan 3.6.4, which adds input validation and directory-boundary enforcement (per the advisory, allowing only valid Attribute View IDs, rejecting traversal sequences, and checking the resolved path stays under storage/av); see https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4 and https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vw86-c94w-v3x4. If you cannot upgrade immediately, the most effective compensating control is to disable or firewall the publish/reader service so the /api/av/removeUnusedAttributeView endpoint is unreachable by untrusted users - trade-off: this removes public read/publish functionality. Where publish must remain on, restrict access to the endpoint at a reverse proxy (block or authenticate requests to /api/av/removeUnusedAttributeView) and place the instance behind a VPN or IP allowlist; trade-off is added access friction. Ensure regular backups of the workspace data and conf directories so a successful deletion of conf/conf.json or workspace metadata can be recovered without full re-setup.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SiYuan is an open-source, self-hosted personal knowledge management system written in Go (kernel package github.com/siyuan-note/siyuan/kernel). The flaw is a classic path-traversal root cause: the handler builds a filesystem path with filepath.Join(util.DataDir, "storage", "av", id+".json") using the untrusted id directly, with no normalization, format validation, or boundary check that the resolved path stays under storage/av. filepath.Join collapses ../ segments, so an id like ../../../conf/conf resolves to conf/conf.json outside the intended directory. NVD classes this as CWE-24 (Path Traversal '../filedir'), while the vendor advisory cites the parent class CWE-22 (Improper Limitation of a Pathname to a Restricted Directory); both describe the same directory-escape defect. The affected package is cpe:2.3:a:b3log:siyuan.
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
AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
Network endpoint reachable with low-privilege publish/reader access (PR:L); a flaw in the av component deletes files owned by the whole app (S:C); deletion harms integrity partially (I:L) and availability heavily (A:H), no confidentiality impact.
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and prior, the /api/av/removeUnusedAttributeView endpoint constructs a filesystem path using the user-controlled id parameter without validation or path boundary enforcement. An attacker can inject path traversal sequences such as ../ into the id value to escape the intended directory and delete arbitrary .json files on the server, including global configuration files and workspace metadata. This issue has been fixed in version 3.6.4.
Executive ViewAI
SiYuan versions 3.6.3 and earlier allow low-privileged users to permanently delete critical system and workspace files, causing data loss and service disruption. Organizations running affected versions face immediate operational risk, with readily available exploit code increasing the potential attack surface.
Apply vendor patch.
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.
Affected Products (CPE)GitHub Advisory
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
Same weakness CWE-24 – Path Traversal: '../filedir'
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
GHSA-vw86-c94w-v3x4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB