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.
Published: 2026-07-09
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan, an open‑source personal knowledge management system, suffered an unauthenticated SQL injection flaw in its block search endpoint (POST /api/search/fullTextSearchBlock). Prior to version 3.7.1 the server concatenated attacker‑controlled path values into SQL predicates used by non‑SQL search modes, enabling a UNION SELECT to retrieve rows from hidden documents that a visitor can access via the public publish URL without any authentication, thereby jeopardising confidentiality of unpublished information.

Affected Systems

Vendors affected include Siyuan Note (SiYuan). Any deployment of SiYuan with a version earlier than 3.7.1 is vulnerable; the issue was remedied in release 3.7.1 and later versions are not affected.

Risk and Exploitability

The CVSS score of 7.5 reflects a high‑severity vulnerability with a moderate impact on confidentiality. The EPSS score of < 1% indicates a very low but non‑zero exploitation probability, but the lack of a KEV listing suggests that no widely distributed exploits are known. The attack vector is likely through unauthenticated web requests to the search API, which an attacker could trigger from a remote client that includes a UNION SELECT clause. a classic SQL injection (CWE‑89) indicates that it application fails to validate or escape user input.

Generated by OpenCVE AI on July 29, 2026 at 11:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.7.1 or later to apply the fix that sanitises search query inputs.
  • If an immediate upgrade is not feasible, restrict unauthenticated access to the block search endpoint or disable public publishing so the vulnerable API cannot be accessed, or use a firewall or reverse‑proxy rule to block or rate‑limit requests to /api/search/fullTextSearchBlock from unauthenticated users as a temporary mitigating measure.
  • Review application logs for anomalous search requests and monitor for potential exploitation attempts.

Generated by OpenCVE AI on July 29, 2026 at 11:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 09:15:00 +0000

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan

Thu, 09 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
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.
Title SiYuan: SQL Query in Block Search Exposes Hidden Published Document Content
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T13:33:27.562Z

Reserved: 2026-07-07T15:00:50.979Z

Link: CVE-2026-59834

cve-icon Vulnrichment

Updated: 2026-07-10T13:33:19.477Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T11:45:03Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')