Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/siyuan-note/siyuan/kernel
  4. ›
  5. CVE-2026-59834

CVE-2026-59834: SiYuan: SQL Query in Block Search Exposes Hidden Published Document Content

September 2, 2026

Siyuan’s block search endpoint concatenates attacker-controlled paths[] values into SQL predicates used by non-SQL search modes. Through Siyuan’s publish service, an unauthenticated visitor is forwarded to the kernel with a reader-role token and can reach POST /api/search/fullTextSearchBlock.

An attacker can inject a UNION SELECT through paths[] and return rows from hidden documents while projecting an allowed visible box and path. The post-query publish access filter trusts the projected box and path, so the injected hidden row is returned to the publish visitor.

References

  • github.com/advisories/GHSA-h89q-4j2h-7h88
  • github.com/siyuan-note/siyuan/commit/57bcad4b331836880bfe6be25d4180bdcf10db0d
  • github.com/siyuan-note/siyuan/commit/d0f0fe146fb07d594fcadc4f48d4f7c30ac01d1e
  • github.com/siyuan-note/siyuan/releases/tag/v3.7.1
  • github.com/siyuan-note/siyuan/security/advisories/GHSA-h89q-4j2h-7h88
  • nvd.nist.gov/vuln/detail/CVE-2026-59834

Code Behaviors & Features

Detect and mitigate CVE-2026-59834 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.0.0-20260704035518-d0f0fe146fb0

Fixed versions

  • 0.0.0-20260704035518-d0f0fe146fb0

Solution

Upgrade to version 0.0.0-20260704035518-d0f0fe146fb0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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/CVE-2026-59834.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:15 +0000.