CVE-2026-72807 SiYuan before v3.7.4 SQL Injection via queryBlocks template

High 8.8 Published Updated

Attackers can execute arbitrary SQL via malicious documents, enabling read and write access to notebooks in SiYuan.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-72807?

CVE-2026-72807 is a high-severity SQL injection vulnerability in siyuan-note siyuan, published on 12 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2026-72807?

3 open source packages ship an affected version, including github.com/siyuan-note/siyuan/kernel.

PackageAffectedFixed in
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260723035036-0a176345e02a
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260723035036-0a176345e02a
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260723035036-0a176345e02a

How do I fix CVE-2026-72807?

Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260723035036-0a176345e02a or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-72807 being exploited?

There is no known exploitation of CVE-2026-72807 in the wild and no public exploit code.

Sources

Also known as GHSA-x67c-8pwr-m8g3, GO-2026-6410.

Is CVE-2026-72807 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free