{"id":"GHSA-5w4j-hchp-r332","title":"Duplicate Advisory: Unauthenticated SQL injection in searchDocs via unescaped keyword (publish mode): cross-notebook read/write with statement stacking","summary":"Duplicate Advisory: Unauthenticated SQL injection in searchDocs via unescaped keyword (publish mode): cross-notebook read/write with statement stacking","severity":"critical","cvss":10,"cwe":["CWE-89"],"vendor":"siyuan-note","product":"github.com/siyuan-note/siyuan/kernel","ecosystem":"go","affected":["github.com/siyuan-note/siyuan/kernel <= 3.7.2"],"published":"2026-08-03","updated":"2026-10-01","sourceUpdated":"2026-10-01T15:44:02Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-5w4j-hchp-r332","references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-33jq-p8c2-q3q4"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69085"},{"url":"https://www.vulncheck.com/advisories/siyuan-before-sql-injection-via-searchdocs"},{"url":"https://github.com/advisories/GHSA-5w4j-hchp-r332"}],"tags":["ghsa","go"],"ingestedAt":"2026-10-01T15:48:17.820Z","slug":"GHSA-5w4j-hchp-r332","body":"## Overview\n\n## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-33jq-p8c2-q3q4. This link is maintained to preserve external references.\n\n## Original Description\nSiYuan 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.CVE-2026-69085\n\n## Affected packages\n\n- `github.com/siyuan-note/siyuan/kernel <= 3.7.2`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"midnight","depthScore":55,"depthScoreParts":{"impact":55,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}