Skip to content
OpenAdvisories
High · 8.0 CVE-2026-72807 EUVD-2026-57408GHSA-2jmx-q9jf-wp3wGHSA-x67c-8pwr-m8g3GO-2026-6410

SiYuan before v3.7.4 SQL Injection via queryBlocks template

Published Aug 12, 2026 · Updated Aug 14, 2026 · Assigned by VulnCheck

Description

SiYuan versions before v3.7.4 contain a second-order SQL injection vulnerability in attribute-view template columns that expose the queryBlocks function, which executes raw SQL using string substitution instead of parameterized queries. Attackers can distribute malicious SiYuan documents or packages with crafted template columns that execute arbitrary SQL on a victim's kernel when the package is imported and rendered, enabling read and write access across notebooks.

Affected products

VendorProductAffectedFixed
siyuan-note siyuan < 3.7.4 3.7.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260916T180043-160000.1.1 SUSE-SU-2026:23863-1, SUSE-SU-2026:23855-1
SLES 16.0 govulncheck-vulndb 0.0.20260916T180043-160000.1.1 SUSE-SU-2026:23863-1, SUSE-SU-2026:23855-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260916T180043-160000.1.1 openSUSE-SU-2026:21897-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260723035036-0a176345e02a 0.0.0-20260723035036-0a176345e02a GHSA-x67c-8pwr-m8g3

Advisories 3

References