{"id":"GHSA-5w4j-hchp-r332","revision":"027db5acbb9b4f02a1eb4dccd2bbba91","records":[{"revision":"027db5acbb9b4f02a1eb4dccd2bbba91","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-5w4j-hchp-r332","aliases":[],"title":"Duplicate Advisory: Unauthenticated SQL injection in searchDocs via unescaped keyword (publish mode): cross-notebook read/write with statement stacking","description":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of\u00A0GHSA-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","state":2,"publishedAt":"2026-08-03T15:32:48+00:00","modifiedAt":"2026-10-01T16:00:04.775215+00:00","affected":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"3.7.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","score":null,"severity":null},{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/siyuan-note/siyuan/security/advisories/GHSA-33jq-p8c2-q3q4","https://nvd.nist.gov/vuln/detail/CVE-2026-69085","https://www.vulncheck.com/advisories/siyuan-before-sql-injection-via-searchdocs"],"sourceUrl":"https://github.com/advisories/GHSA-5w4j-hchp-r332","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5w4j-hchp-r332","identifiers":["GHSA-5w4j-hchp-r332"]},"retained":false,"historicalAffected":[]}],"coverage":[]}