Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/siyuan-note/siyuan/kernel
  4. ›
  5. GHSA-33jq-p8c2-q3q4

GHSA-33jq-p8c2-q3q4: SiYuan: Unauthenticated SQL injection in searchDocs via unescaped keyword (publish mode): cross-notebook read/write with statement stacking

October 1, 2026

The /api/filetree/searchDocs endpoint concatenates the caller-supplied search keyword directly into a SQL statement with no escaping and no parameter binding. The endpoint is gated by CheckAuth only reachable by the publish RoleReader token, and by the anonymous account when Publish.Auth.Enable is false. The resulting statement runs on a read-write SQLite handle through a driver that executes stacked (;-separated) statements, against the global blocks table spanning all cleartext notebooks. An unauthenticated request can therefore read and write database content across every non-encrypted notebook on the instance.

References

  • github.com/advisories/GHSA-33jq-p8c2-q3q4
  • github.com/siyuan-note/siyuan/releases/tag/v3.7.3
  • github.com/siyuan-note/siyuan/security/advisories/GHSA-33jq-p8c2-q3q4
  • nvd.nist.gov/vuln/detail/CVE-2026-69085
  • www.vulncheck.com/advisories/siyuan-before-sql-injection-via-searchdocs

Code Behaviors & Features

Detect and mitigate GHSA-33jq-p8c2-q3q4 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260721043339-eef10568384e

Fixed versions

  • 0.0.0-20260721043339-eef10568384e

Solution

Upgrade to version 0.0.0-20260721043339-eef10568384e or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

go/github.com/siyuan-note/siyuan/kernel/GHSA-33jq-p8c2-q3q4.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 07 Oct 2026 00:18:25 +0000.