github.com/siyuan-note/siyuan/kernel · Duplicate Advisory: Second-order SSTI to arbitrary SQL via attribute-view template column (queryBlocks): malicious imported package executes SQL on victim kernel
Affects github.com/siyuan-note/siyuan/kernelSource GCVE Database
CVSS 8.0 High · fixed in 3.7.4 : patch github.com/siyuan-note/siyuan/kernel soon.
Data as of 7 Sep 2026, 13:37 UTC
- Patch
- Available – fixed in 3.7.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/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
A fix is available in SiYuan version 3.7.4 and later. Users should upgrade to version 3.7.4 or newer to remediate this vulnerability.
Description
SiYuan versions before v3.7.4 contain a second-order SQL injection vulnerability in attribute-view template columns. This flaw allows execution of arbitrary SQL commands on the victim's kernel when a malicious package with crafted template columns is imported and rendered. The vulnerability arises because the queryBlocks function executes raw SQL using string substitution instead of parameterized queries. This enables attackers to gain read and write access across notebooks.