github.com/siyuan-note/siyuan/kernel · Kernel: Duplicate Advisory: Unauthenticated arbitrary SQL execution via searchEmbedBlock (publish mode) : reader-reachable raw statement on read-write handle, cross-notebook read/write
Affects github.com/siyuan-note/siyuan/kernelSource GCVE Database
CVSS 10.0 Critical · fixed in 3.7.3 : patch github.com/siyuan-note/siyuan/kernel as a priority.
Data as of 7 Sep 2026, 12:22 UTC
- Patch
- Available – fixed in 3.7.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:NWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/siyuan-note/siyuan/kernel | Affected– | Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade SiYuan to version v3.7.3 or later, where this vulnerability is fixed. Until the upgrade, restrict access to the /api/search/searchEmbedBlock endpoint by enforcing strict authentication and disabling publish mode if possible. Review and monitor access controls related to the publish RoleReader token. Patch status is confirmed fixed in v3.7.3.
Description
SiYuan versions up to and including v3.7.2 have a critical SQL injection vulnerability in the /api/search/searchEmbedBlock endpoint. This endpoint executes client-supplied SQL statements directly on the main read-write database handle without restrictions, allowing unauthenticated attackers or those with limited publish RoleReader access to read and modify content across all opened cleartext notebooks. The vulnerability is fixed in version v3.7.3.