SiYuan
CVE-2026-59853
MEDIUM
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Network-accessible API requires low-privilege Reader authentication (PR:L); metadata-only disclosure is confined to the vulnerable SiYuan instance with no integrity or availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, the /api/storage/getCriteria endpoint returns saved search criteria from data/storage/criteria.json without the publish-access filtering used by sibling storage endpoints, allowing a publish-mode Reader to read private document paths, notebook, document, and block IDs, and search and replace keywords for unpublished documents. This issue is fixed in versions 3.7.1.
AnalysisAI
Missing authorization on the /api/storage/getCriteria endpoint in SiYuan personal knowledge management software exposes saved search criteria - including private document paths, notebook and block IDs, and search/replace keyword history - to any publish-mode Reader, bypassing the access controls applied by all sibling storage endpoints. All SiYuan releases prior to 3.7.1 are affected per the vendor security advisory GHSA-px3c-cf92-9g83. No public exploit has been identified at time of analysis and the vulnerability is not listed in CISA KEV, though the low attack complexity and readily available fix commit make this straightforward to weaponize against exposed instances.
Technical ContextAI
SiYuan (CPE: cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:*) is a self-hosted, open-source personal knowledge management system that supports a publish mode granting external parties Reader-level access to selected content. Internal storage endpoints under /api/storage/ serve files from the local data directory and are expected to apply publish-access filtering to prevent Readers from seeing content outside their permitted scope. The /api/storage/getCriteria endpoint reads from data/storage/criteria.json and returns saved search criteria but omits the publish-access filtering logic present in its sibling endpoints. The root cause is CWE-862 (Missing Authorization): the endpoint does not verify whether the authenticated caller's role entitles them to the full criteria store, which includes metadata referencing unpublished and private documents.
RemediationAI
Upgrade SiYuan to version 3.7.1 or later; this is the vendor-released patch that applies consistent publish-access filtering to the /api/storage/getCriteria endpoint. The fix commit is available at https://github.com/siyuan-note/siyuan/commit/0049d0f04ffe9837760d29248b9ef31605077d36 and the release is tagged at https://github.com/siyuan-note/siyuan/releases/tag/v3.7.1. As a compensating control prior to patching, administrators can disable publish mode entirely if external read access is not operationally required - note that doing so removes all public read access to shared content. Alternatively, restricting network access to the SiYuan instance via firewall rules or reverse-proxy authentication to trusted users will prevent exploitation by external parties, though this does not eliminate risk from insider misuse of Reader accounts.
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
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
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
Reflected XSS in SiYuan knowledge management before 3.5.9.
SiYuan knowledge management system prior to 3.5.5 has a path traversal in /api/file/copyFile allowing arbitrary file ope
SiYuan version 3.0.3 allows executing arbitrary commands on the server. Rated critical severity (CVSS 9.0), this vulnera
SQL injection in SiYuan prior to version 3.6.0 allows any authenticated user, including those with read-only access, to
Cross-site scripting (XSS) in SiYuan personal knowledge management system versions 3.6.0-3.6.1 allows remote attackers t
Same weakness CWE-862 – Missing Authorization
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today