Skip to main content
VulnerabilityPublished Updated

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

0

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

CVSS 3.1 base score
8.0High
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Affected software

ProductAffectedFixed in
Gogithub.com/siyuan-note/siyuan/kernelAffected–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.

References

Community reviews

Loading reviews…