{"id":"CVE-2026-116170","title":"SiYuan before v3.8.7 SQL Injection via History Search op and query","summary":"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 getHi…","severity":"medium","cvss":4.9,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","cvssSource":"cna","cwe":["CWE-89"],"vendor":"siyuan-note","product":"siyuan","affected":["siyuan < 3.8.7"],"published":"2026-10-25","updated":"2026-10-25","sourceUpdated":"2026-10-25T14:27:42.570Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-116170","references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4hjx-84f6-gr7c","label":"GitHub Security Advisory (GHSA-4hjx-84f6-gr7c)"},{"url":"https://www.vulncheck.com/advisories/siyuan-before-3.8.7-sql-injection-via-history-search-op-and-query","label":"VulnCheck Advisory: SiYuan before v3.8.7 SQL Injection via History Search op and query"}],"tags":["cve.org"],"ingestedAt":"2026-10-25T22:08:29.935Z","slug":"CVE-2026-116170","body":"## Overview\n\nSiYuan 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.\n\n## Affected\n\n- `siyuan < 3.8.7`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":27,"depthScoreParts":{"impact":27,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}