CVE-2026-32704 SiYuan renderSprig: missing admin check allows any user to read full workspace DB
Any authenticated user can execute arbitrary SQL queries to read the entire workspace database due to a missing admin check in the template rendering API.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-32704?
CVE-2026-32704 is a medium-severity missing authorization vulnerability in B3log Siyuan, published on 13 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
SiYuan is a personal knowledge management system. Prior to 3.6.1, POST /api/template/renderSprig lacks model.CheckAdminRole, allowing any authenticated user to execute arbitrary SQL queries against the SiYuan workspace database and exfiltrate all note content, metadata, and custom attributes. This vulnerability is fixed in 3.6.1.
Which versions are affected by CVE-2026-32704?
3 open source packages ship an affected version, including github.com/siyuan-note/siyuan/kernel. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/siyuan-note/siyuan/kernel Go | All versions | None |
github.com/siyuan-note/siyuan/kernel Go | All versions | 3.6.1 |
github.com/siyuan-note/siyuan/kernel Go | All versions | 3.6.1 |
Products include B3log Siyuan.
How do I fix CVE-2026-32704?
Upgrade github.com/siyuan-note/siyuan/kernel to 3.6.1 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-32704 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32704 exists.
Other vulnerabilities in B3log Siyuan
- CVE-2026-32938 SiYuan has an Arbitrary File Read in its Desktop Publish Service
- CVE-2026-33669 SiYuan has Arbitrary Document Reading within the Publishing Service
- CVE-2026-33670 SiYuan has directory traversal within its publishing service
- CVE-2026-32767 SiYuan: Authorization Bypass Allows Arbitrary SQL Execution via Search API
- CVE-2024-53504 SQL injection in n/a
Sources
Also known as GHSA-4j3x-hhg2-fm2x, GO-2026-4700.