What’s Vulnerable › Vulnerabilities

CVE-2026-116170: 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.

Affected products

How to fix

Upgrade to a fixed version: siyuan-note siyuan 3.8.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-116170 or the next vulnerability affects your stack