{"id":"CVE-2026-59834","published":"2026-07-09T22:15:48Z","modified":"2026-07-10T13:33:27Z","title":"SiYuan: SQL Query in Block Search Exposes Hidden Published Document Content","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, the block search endpoint POST /api/search/fullTextSearchBlock concatenates attacker-controlled paths values into SQL predicates used by non-SQL search modes, allowing an unauthenticated publish visitor to inject a UNION SELECT and return rows from hidden documents by projecting an allowed visible box and path. This issue is fixed in versions 3.7.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00483,"percentile":0.42464,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-h89q-4j2h-7h88","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/siyuan-note/siyuan/commit/57bcad4b331836880bfe6be25d4180bdcf10db0d","tags":["x_refsource_MISC"]},{"url":"https://github.com/siyuan-note/siyuan/commit/d0f0fe146fb07d594fcadc4f48d4f7c30ac01d1e","tags":["x_refsource_MISC"]},{"url":"https://github.com/siyuan-note/siyuan/releases/tag/v3.7.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":8.49},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.7.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-10T13:33:00.538761Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260704035518-d0f0fe146fb0"],"patched":["0.0.0-20260704035518-d0f0fe146fb0"],"from":["GHSA-h89q-4j2h-7h88","GO-2026-6353"],"provenance":"source"}],"summary":{"text":"SiYuan, an open-source personal knowledge management system, contains an SQL injection flaw in the block search endpoint POST /api/search/fullTextSearchBlock, where attacker-controlled paths values are concatenated into SQL predicates used by non-SQL search modes. An unauthenticated visitor to a publish site can exploit this over the network, without user interaction, by injecting a UNION SELECT to return rows from hidden documents, which allows reading their content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:14Z"},"euvd":{"id":"EUVD-2026-42742","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-siyuan-note-siyuan-cve-2026-23645","children":[{"from":"CVE-2026-59834","to":"CVE-2026-101091","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/sql/block_query.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/e8ace0c89182c7ee1a1298ff2a849bb6a83dfdec","https://github.com/siyuan-note/siyuan/commit/57bcad4b331836880bfe6be25d4180bdcf10db0d","https://github.com/siyuan-note/siyuan/commit/d0f0fe146fb07d594fcadc4f48d4f7c30ac01d1e"],"basis":"rarely changed file"}]},{"from":"CVE-2026-59834","to":"CVE-2026-69084","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/api/search.go","kernel/model/search.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/57bcad4b331836880bfe6be25d4180bdcf10db0d","https://github.com/siyuan-note/siyuan/commit/d0f0fe146fb07d594fcadc4f48d4f7c30ac01d1e","https://github.com/siyuan-note/siyuan/commit/0015cbafbf685363b217bbc46283a3c0f51c79fa","https://github.com/siyuan-note/siyuan/commit/23a17d44b5f3da59c85e7fbee11236e6c12386b9"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-54069","published":"2026-06-24","fixed":"0.0.0-20260628153353-2d5d72223df4","kev":false},{"cve":"CVE-2026-54070","published":"2026-06-24","fixed":"0.0.0-20260628153353-2d5d72223df4","kev":false},{"cve":"CVE-2026-54158","published":"2026-06-24","fixed":"0.0.0-20260628153353-2d5d72223df4","kev":false},{"cve":"CVE-2026-59834","published":"2026-07-09","fixed":"0.0.0-20260704035518-d0f0fe146fb0","kev":false},{"cve":"CVE-2026-59832","published":"2026-07-09","fixed":"0.0.0-20260704035520-68cc0f537dfa","kev":false,"link":{"from":"CVE-2026-59834","to":"CVE-2026-59832","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260704035518-d0f0fe146fb0","toFixed":"0.0.0-20260704035520-68cc0f537dfa","daysApart":0}]}},{"cve":"CVE-2026-66394","published":"2026-07-27","fixed":"0.0.0-20260714095344-f08dee71ba8e","kev":false},{"cve":"CVE-2026-69086","published":"2026-08-03","fixed":"0.0.0-20260720151813-0f5a0e7c67b0","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}