{"id":"CVE-2026-116170","revision":"6e117c2bc4524bdca32845c4011f355a","records":[{"revision":"6e117c2bc4524bdca32845c4011f355a","observedAt":"2026-10-25T16:17:04.61+00:00","statement":{"source":"cve-program","id":"CVE-2026-116170","aliases":[],"title":"SiYuan before v3.8.7 SQL Injection via History Search op and query","description":"SiYuan before v3.8.7 contains an sql injection vulnerability that allows admin-token holders to read history.db by injecting unescaped op and type=3 query values. Attackers can send crafted UNION SELECT payloads to searchHistory or getHistoryItems endpoints to exfiltrate deleted document content, titles, and paths.","state":0,"publishedAt":"2026-10-25T13:20:12.378+00:00","modifiedAt":"2026-10-25T14:27:42.57+00:00","affected":[{"ecosystem":"Vendor product","name":"siyuan","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"siyuan-note\",\n                    \"product\": \"siyuan\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:golang/github.com/siyuan-note/siyuan/kernel\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"3.8.7\"\n                        },\n                        {\n                            \"version\": \"3.8.7\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.9,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"severity":"MEDIUM"}],"references":["https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4hjx-84f6-gr7c","https://www.vulncheck.com/advisories/siyuan-before-3.8.7-sql-injection-via-history-search-op-and-query"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-116170","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-116170","identifiers":["CVE-2026-116170"]},"retained":false,"historicalAffected":[]}],"coverage":[]}