CVE-2026-69083: SiYuan: Unauthenticated SQL execution and REGEXP injection via fullTextSearchAssetContent (publish mode): reader-reachable raw SQL (method 2) and unescaped REGEXP (method 3) on read-write asset-content DB
The /api/search/fullTextSearchAssetContent endpoint exposes two SQL flaws on the asset-content database, both reachable by the publish RoleReader token and by the anonymous account when Publish.Auth.Enable is false:
- method 2 passes a client-supplied SQL statement to the read-write asset-content DB with no single-statement or read-only guard, and without the admin restriction its sibling
fullTextSearchBlockapplies to the same SQL method. - method 3 builds a
REGEXPclause by concatenating the client expression with no quote-escaping, permitting SQL breakout while the equivalent block-search builder does escape.
Both run on a read-write handle through a statement-stacking-capable driver, spanning the cross-notebook asset-content store.
References
- github.com/advisories/GHSA-fph3-ghq9-vw66
- github.com/siyuan-note/siyuan/commit/cf42dd5680c8f2d50cebfada5d639c8d59faf50e
- github.com/siyuan-note/siyuan/security/advisories/GHSA-fph3-ghq9-vw66
- nvd.nist.gov/vuln/detail/CVE-2026-69083
- www.vulncheck.com/advisories/siyuan-before-sql-injection-via-fulltextsearchassetcontent
Code Behaviors & Features
Detect and mitigate CVE-2026-69083 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →