Advisory record · GHSA-h89q-4j2h-7h88

SiYuan: SQL Query in Block Search Exposes Hidden Published Document Content

CVSS 7.5 HighEPSS 0.0048 · 41st percentile

Published by the GitHub Advisory Database at 2 Sept 2026, 14:16 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/siyuan-note/siyuan/kernelGo<0.0.0-20260704035518-d0f0fe146fb00.0.0-20260704035518-d0f0fe146fb0
Identifiers
GHSA-h89q-4j2h-7h88 · CVE-2026-59834 · GO-2026-6353
Weakness (CWE)
CWE-89
Published
2 Sept 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Siyuan's block search endpoint (fullTextSearchBlock) builds SQL from attacker-controlled paths[] values, affecting Go module github.com/siyuan-note/siyuan/kernel at versions before 0.0.0-20260704035518-d0f0fe146fb0. Through the publish service, an unauthenticated visitor can inject SQL that returns block content from hidden documents, because the publish access filter checks only the returned box and path. An attacker can read private note content that publish visibility controls are meant to hide. Upgrade to 0.0.0-20260704035518-d0f0fe146fb0 or later.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0048, the 41st percentile, on 10 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:13 UTC First seen by agentprime
  2. 31 Oct 2026, 14:13 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.