CVE-2026-59834 Details
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.
A SQL injection vulnerability has been identified in SiYuan, an open-source personal knowledge management system, prior to version 3.7.1. The issue arises in the block search endpoint, specifically the POST /api/search/fullTextSearchBlock route. The vulnerability allows an unauthenticated publish visitor to inject a UNION SELECT statement through attacker-controlled paths, bypassing visibility controls and accessing content from hidden documents. This is achieved by exploiting the endpoint's handling of SQL predicates in non-SQL search modes, concatenating injected values without proper validation or escaping.
Users are advised to update to SiYuan version 3.7.1 or later, where this vulnerability has been fixed. Additionally, ensure that SQL query construction validates and sanitizes user inputs, particularly for paths and notebook IDs, to prevent injection attacks.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 9, 2026CISA-ADP
Assessed Jul 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/siyuan-note/siyuan/security/advisories/GHSA-h89q-4j2h-7h88 | CISA-ADP | AdvisoryRemedyVendor |
| https://github.com/siyuan-note/siyuan/commit/57bcad4b331836880bfe6be25d4180bdcf10db0d | [email protected] | Source CodeVendor |
| https://github.com/siyuan-note/siyuan/commit/d0f0fe146fb07d594fcadc4f48d4f7c30ac01d1e | [email protected] | Source CodeVendor |
| https://github.com/siyuan-note/siyuan/releases/tag/v3.7.1 | [email protected] | Release NotesVendor |
| https://github.com/siyuan-note/siyuan/security/advisories/GHSA-h89q-4j2h-7h88 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| SiYuan | <= 3.6.5 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 10, 2026 | CVE Modified | CISA-ADP |
| Jul 9, 2026 | New CVE Received | [email protected] |
Volerion