Skip to main content

SiYuan EUVDEUVD-2026-42742

| CVE-2026-59834 HIGH
SQL Injection (CWE-89)
2026-07-09 GitHub_M GHSA-h89q-4j2h-7h88
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed SiYuan publish endpoint
  2. Delivery
    POST to /api/search/fullTextSearchBlock in non-SQL mode
  3. Exploit
    Inject UNION SELECT via paths filter
  4. Execution
    Spoof allowed visible box and path
  5. Persist
    Return rows from hidden documents
  6. Impact
    Exfiltrate private note contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target to be running SiYuan prior to 3.7.1 with the publish feature enabled and network-reachable by the attacker, since the vulnerable actor is an 'unauthenticated publish visitor' hitting POST /api/search/fullTextSearchBlock. The specific trigger is supplying a malicious paths value that injects a UNION SELECT into the SQL predicates built for the endpoint's non-SQL search modes, spoofing an allowed visible box and path to project hidden-document rows. Limiting factors: the instance must actually expose publish mode publicly (a private, LAN-only, or non-published SiYuan install is not reachable by this actor), and impact is confined to confidentiality - reading hidden documents - with no write or availability effect. No user interaction or authentication is needed once publish mode is exposed.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:N/A:N, base 7.5) indicates a network-reachable, low-complexity, unauthenticated attack with high confidentiality impact but no integrity or availability effect - consistent with a data-disclosure UNION-based SQLi rather than full RCE. The realistic precondition, not captured by the raw vector, is that the target must run SiYuan's publish mode exposed to the attacker; the 'unauthenticated publish visitor' actor means PR:N is justified for reachable instances but the population of publicly published SiYuan servers is a limiting factor. No EPSS score, SSVC decision, KEV entry, or POC was provided, so exploitation probability cannot be quantified from the input; the vendor advisory (GHSA-h89q-4j2h-7h88) and two fix commits confirm the flaw is real and patched. Net: a genuine, easy-to-exploit information-disclosure bug for anyone running exposed publish mode, but likely limited real-world blast radius given SiYuan's niche, self-hosted deployment profile - treat as high priority only if you publish notebooks publicly.

Exploit ScenarioDerived

An attacker who can reach a publicly published SiYuan instance sends a crafted POST /api/search/fullTextSearchBlock request in a non-SQL search mode, placing a UNION SELECT payload inside the paths filter that projects an allowed visible box and path. The response returns block rows from hidden (non-published) documents, disclosing private notes without any credentials. No public POC is referenced, but the low attack complexity makes manual exploitation straightforward.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 09, 2026

SQL injection in SiYuan's block-search endpoint (POST /api/search/fullTextSearchBlock) before version 3.7.1 lets an unauthenticated publish-mode visitor read documents they should not see. The endpoint concatenates attacker-controlled paths values directly into SQL predicates used by its non-SQL search modes, enabling a UNION SELECT that projects rows from hidden documents by spoofing an allowed visible box and path. No public exploit has been identified at time of analysis, and the issue is not listed in CISA KEV; CVSS is 7.5 reflecting confidentiality-only impact.

RemediationAI

Vendor-released patch: 3.7.1 - upgrade all SiYuan instances to 3.7.1 or later, which fixes the input handling in the search endpoint (see commits 57bcad4b331836880bfe6be25d4180bdcf10db0d and d0f0fe146fb07d594fcadc4f48d4f7c30ac01d1e and the release at https://github.com/siyuan-note/siyuan/releases/tag/v3.7.1). Until you can patch, the most effective compensating control is to disable or take offline the publish feature so no unauthenticated visitor can reach POST /api/search/fullTextSearchBlock, at the cost of losing public note sharing; alternatively place the published instance behind an authenticating reverse proxy or IP allowlist, or block/restrict access to the /api/search/ path at the proxy, accepting that this may break legitimate visitor search functionality. Refer to the advisory GHSA-h89q-4j2h-7h88 for vendor guidance.

Affected VersionsENISA

SiYuan < 3.7.1

Affected Packages

go github.com/siyuan-note/siyuan/kernel fix: 0.0.0-20260704035518-d0f0fe146fb0
euvd siyuan fix: 3.7.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SiYuan is a self-hosted, open-source personal knowledge management (PKM) system that stores notes as 'blocks' indexed in an embedded SQL database (SQLite). Its 'publish' feature exposes a read-only web view of selected notebooks to visitors. The full-text block search endpoint supports several search modes; for the non-SQL modes it still builds SQL predicates internally, and the user-supplied paths filter is string-concatenated into those predicates rather than bound as a parameter. This is a textbook CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) flaw: because the input reaches the query as raw SQL, an attacker can close the intended predicate and append a UNION SELECT that returns arbitrary rows, bypassing the visibility scoping that normally restricts a publish visitor to permitted boxes and paths.

Know when Siyuan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 7.5 HIGH

Unauthenticated publish visitor reaches the endpoint over the network with a simple UNION payload (AV:N/AC:L/PR:N/UI:N); impact is disclosure of hidden documents only, so C:H, I:N, A:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Sep 02, 2026 - 16:02 EUVD

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

SiYuan versions before 3.7.1 enable unauthenticated users to access protected documents through a search feature flaw, exposing confidential information to any internet visitor. No public exploit code has been identified, but organizations must assume this capability is discoverable by adversaries. Immediate network access restrictions and patching plans are required to contain this confidentiality risk.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable publish mode if not business-critical; (2) Restrict network access to SiYuan instances via IP whitelisting or firewall rules; (3) Implement Web Application Firewall rules blocking requests to /api/search/fullTextSearchBlock with URL-encoded SQL operators (UNION, SELECT); (4) Enable audit logging on search endpoint and monitor for exploitation attempts; (5) Conduct inventory of documents accessible via public SiYuan instances to assess data exposure scope.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
niche self-hosted open-source PKM app, limited enterprise footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected
openSUSE Leap 15.6 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy