CVE-2026-69085 SiYuan before v3.7.3 SQL Injection via searchDocs

Critical 9.9 Published Updated

An attacker can execute arbitrary SQL commands via the searchDocs endpoint to read and modify database content in SiYuan.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-69085?

CVE-2026-69085 is a critical SQL injection vulnerability in siyuan-note siyuan, published on 3 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

SiYuan before v3.7.3 contains a SQL injection vulnerability in the /api/filetree/searchDocs endpoint, where the caller-supplied keyword parameter is concatenated directly into SQL statements with no escaping or parameter binding. The endpoint is reachable by a publish RoleReader token, or unauthenticated when publish mode is enabled with Publish.Auth.Enable set to false. Because the statement executes on a read-write SQLite handle via a driver that supports stacked (semicolon-separated) statements, an attacker can read and modify database content across all cleartext (non-encrypted) notebooks on the instance.

Weakness: CWE-89

Which versions are affected by CVE-2026-69085?

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-20260721043339-eef10568384e
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260721043339-eef10568384e
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260721043339-eef10568384e

How do I fix CVE-2026-69085?

Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260721043339-eef10568384e 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-69085 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-69085 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-33jq-p8c2-q3q4, GO-2026-6621.

Is CVE-2026-69085 in your software?

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

Check your SBOMs for free