# CVE-2026-32767: SiYuan: Authorization Bypass Allows Arbitrary SQL Execution via Search API

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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): 2.89%, higher than 88% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-16T20:44:52.000Z
- Modified: 2026-06-17T10:36:20.970Z
- Also known as: GHSA-j7wh-x834-p3r7, GO-2026-4716
- Weaknesses: CWE-89, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

SiYuan is a personal knowledge management system. Versions 3.6.0 and below contain an authorization bypass vulnerability in the /api/search/fullTextSearchBlock endpoint. When the method parameter is set to 2, the endpoint passes user-supplied input directly as a raw SQL statement to the underlying SQLite database without any authorization or read-only checks. This allows any authenticated user — including those with the Reader role — to execute arbitrary SQL statements (SELECT, DELETE, UPDATE, DROP TABLE, etc.) against the application's database. This is inconsistent with the application's own security model: the dedicated SQL endpoint (/api/query/sql) correctly requires both CheckAdminRole and CheckReadonly middleware, but the search endpoint bypasses these controls entirely. This issue has been fixed in version 3.6.1.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.6.1
- github.com/siyuan-note/siyuan/kernel (Go): up to 0.0.0-20260313024916-fd6526133bb3; all versions
- b3log siyuan: before 3.6.1

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-j7wh-x834-p3r7> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/siyuan-note/siyuan/issues/17209> (issue-tracking, web)
- <https://github.com/siyuan-note/siyuan/commit/d5e2d0bce0dffef5f61bd8066954bc2d41181fc5> (patch, web)
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.6.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32767> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-32767](https://www.cve.org/CVERecord?id=CVE-2026-32767), CVE Terms of Use, modified 2026-03-20
- GitHub Advisory Database: [GHSA-j7wh-x834-p3r7](https://github.com/advisories/GHSA-j7wh-x834-p3r7), CC-BY-4.0, modified 2026-03-30
- Go Vulnerability Database: [GO-2026-4716](https://pkg.go.dev/vuln/GO-2026-4716), CC-BY-4.0, modified 2026-03-26
- NVD: [CVE-2026-32767](https://nvd.nist.gov/vuln/detail/CVE-2026-32767), Public domain, modified 2026-06-17

---

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