{"cve":"CVE-2026-32767","nvd":{"published":"2026-03-20T01:15:55.597","modified":"2026-06-17T10:36:20.970","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89","CWE-863"],"references":["https://github.com/siyuan-note/siyuan/commit/d5e2d0bce0dffef5f61bd8066954bc2d41181fc5","https://github.com/siyuan-note/siyuan/issues/17209","https://github.com/siyuan-note/siyuan/releases/tag/v3.6.1","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-j7wh-x834-p3r7","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-j7wh-x834-p3r7"],"products":["b3log:siyuan"],"source":"nvd","synced_at":"2026-10-19T22:26:19.218427112+00:00"},"epss":{"cve":"CVE-2026-32767","score":0.0055,"percentile":0.46055,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-j7wh-x834-p3r7","url":"https://osv.dev/vulnerability/GHSA-j7wh-x834-p3r7","summary":"SiYuan: Authorization Bypass Allows Arbitrary SQL Execution via Search API","modified":"2026-03-30T14:00:31Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<=0.0.0-20260313024916-fd6526133bb3"],"fixed":[]}]},{"id":"GO-2026-4716","url":"https://osv.dev/vulnerability/GO-2026-4716","summary":"SiYuan: Authorization Bypass Allows Arbitrary SQL Execution via Search API in github.com/siyuan-note/siyuan/kernel","modified":"2026-03-26T21:03:21.858488Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}