Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Unauthenticated in the publish/Publish.Auth.Enable=false configuration justifies PR:N and AC:L; stacked read-write SQL gives C:H/I:H, with no availability impact so A:N and scope unchanged within the app's own database.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
SiYuan before v3.7.3 contains a SQL injection vulnerability in the /api/filetree/searchDocs endpoint, where the caller-supplied keyword parameter is concatenated directly into SQL statements with no escaping or parameter binding. The endpoint is reachable by a publish RoleReader token, or unauthenticated when publish mode is enabled with Publish.Auth.Enable set to false. Because the statement executes on a read-write SQLite handle via a driver that supports stacked (semicolon-separated) statements, an attacker can read and modify database content across all cleartext (non-encrypted) notebooks on the instance.
AnalysisAI
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitrary SQL through the unescaped keyword parameter of the /api/filetree/searchDocs endpoint. Because the query runs on a read-write SQLite handle that permits stacked statements, an attacker can both read and tamper with content across every cleartext notebook, and the endpoint is reachable unauthenticated when publish mode runs with Publish.Auth.Enable=false. Reported by VulnCheck with a vendor patch available; no public exploit identified at time of analysis, and the CVSS 4.0 score is 9.9.
Technical ContextAI
SiYuan is a self-hosted block-based note-taking application that stores note content and metadata in a local SQLite database and exposes a Go-based HTTP API. The flaw is a classic CWE-89 SQL injection: the /api/filetree/searchDocs handler concatenates the caller-supplied keyword directly into SQL text with no parameter binding or escaping. The severity is amplified by two implementation details - the query executes against a read-write (not read-only) SQLite connection, and the database driver honors stacked, semicolon-separated statements - so a single injection point yields both data exfiltration (SELECT) and arbitrary data modification (INSERT/UPDATE/DELETE) rather than read-only disclosure. The single affected CPE is cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:*.
RemediationAI
Vendor-released patch: upgrade to SiYuan v3.7.3 or later, which is the primary and complete fix per the vendor advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-33jq-p8c2-q3q4. If immediate patching is not possible, disable publish mode entirely, or if publish mode is required, ensure Publish.Auth.Enable is set to true so the /api/filetree/searchDocs endpoint cannot be reached unauthenticated - with the trade-off that legitimate anonymous readers will then need credentials. As a further compensating control, restrict network access to the SiYuan instance (bind to localhost or place behind an authenticating reverse proxy / VPN) and avoid exposing the publish endpoint to untrusted networks; note this does not stop an authenticated RoleReader token holder from exploiting the flaw, so patching remains necessary. Encrypting notebooks reduces exposure of their contents but does not remediate the injection itself.
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-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-52278
GHSA-5w4j-hchp-r332