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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| siyuan-note | siyuan | < 3.8.7 | 3.8.7 |
References
- GitHub Security Advisory (GHSA-4hjx-84f6-gr7c) vendor-advisory
- VulnCheck Advisory: SiYuan before v3.8.7 SQL Injection via History Search op and query third-party-advisory