CVE-2026-59834: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in siyuan-note siyuan
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.
AI Analysis
Technical Summary
CVE-2026-59834 is a SQL injection vulnerability (CWE-89) in SiYuan versions before 3.7.1. The vulnerability exists in the POST /api/search/fullTextSearchBlock endpoint, which improperly concatenates attacker-controlled path values into SQL predicates used by non-SQL search modes. This allows an unauthenticated publish visitor to perform a UNION SELECT injection and retrieve data from hidden documents by leveraging visible box and path projections. The issue is resolved in version 3.7.1.
Potential Impact
An unauthenticated attacker can exploit this vulnerability to perform SQL injection via the block search endpoint, potentially exposing sensitive data from hidden documents. The vulnerability impacts confidentiality but does not affect integrity or availability. The CVSS 3.1 base score is 7.5 (high severity), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact.
Mitigation Recommendations
A fix is available in SiYuan version 3.7.1. Users should upgrade to version 3.7.1 or later to remediate this vulnerability. No additional vendor advisory details are available, so patching is the recommended mitigation.
CVE-2026-59834: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in siyuan-note siyuan
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.
CVSS v3.1
Score 7.5high
Affected software
pkg:github/siyuan-note/siyuanRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59834 is a SQL injection vulnerability (CWE-89) in SiYuan versions before 3.7.1. The vulnerability exists in the POST /api/search/fullTextSearchBlock endpoint, which improperly concatenates attacker-controlled path values into SQL predicates used by non-SQL search modes. This allows an unauthenticated publish visitor to perform a UNION SELECT injection and retrieve data from hidden documents by leveraging visible box and path projections. The issue is resolved in version 3.7.1.
Potential Impact
An unauthenticated attacker can exploit this vulnerability to perform SQL injection via the block search endpoint, potentially exposing sensitive data from hidden documents. The vulnerability impacts confidentiality but does not affect integrity or availability. The CVSS 3.1 base score is 7.5 (high severity), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality impact.
Mitigation Recommendations
A fix is available in SiYuan version 3.7.1. Users should upgrade to version 3.7.1 or later to remediate this vulnerability. No additional vendor advisory details are available, so patching is the recommended mitigation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T15:00:50.979Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a50252a68715ace43310ce4
Added to database: 07/09/2026, 22:48:10 UTC
Last enriched: 07/17/2026, 09:58:45 UTC
Last updated: 08/23/2026, 22:52:12 UTC
Views: 99
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.