# CVE-2026-116170: SiYuan before v3.8.7 SQL Injection via History Search op and query

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-25T13:20:12.378Z
- Modified: 2026-10-29T17:18:03.863Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: before 3.8.7 (not affected: 3.8.7)

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `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`
- VulnCheck: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4hjx-84f6-gr7c> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/siyuan-before-3.8.7-sql-injection-via-history-search-op-and-query> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-116170](https://www.cve.org/CVERecord?id=CVE-2026-116170), CVE Terms of Use, modified 2026-10-29
- NVD: [CVE-2026-116170](https://nvd.nist.gov/vuln/detail/CVE-2026-116170), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-116170 · Whole record: https://cve.day/CVE-2026-116170.json · Rebuilt by cve.day 2026-11-25T22:59:47.060Z
