Skip to main content

SiYuan EUVDEUVD-2026-74833

| CVE-2026-87807 HIGH
SQL Injection (CWE-89)
2026-09-09 VulnCheck GHSA-9r2h-ghj5-r7hq
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Locate SiYuan publish-mode API on network
  2. Delivery
    Send crafted fullTextSearchBlock request with UNION SELECT payload in method=1 query
  3. Exploit
    SQLite executes injected query against blocks table
  4. Execution
    All document blocks and attributes returned
  5. Impact
    Dump private content bypassing publish-access controls

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

The fullTextSearchBlock endpoint must be network-reachable on the SiYuan instance; SiYuan is often bound to localhost by default but may be exposed on LAN or internet in server/publish deployments. The description states 'authenticated SQL injection', implying at least a publish token or session credential is required to invoke the endpoint - however, the CVSS 4.0 vector carries PR:N, suggesting the vendor may consider publish-mode access sufficient to count as unauthenticated. Exploitation is limited to confidentiality impact (blocks table read) and does not achieve code execution or data modification. Instances not exposed beyond localhost are not directly reachable.

Impact

The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N) rates this at 8.7, but the description explicitly labels it an 'authenticated SQL injection', directly contradicting the PR:N metric. If a credential or publish token is required to reach the endpoint, real-world exploitability is lower than PR:N implies. EPSS data is absent, and no KEV listing exists, suggesting this is not currently under active mass exploitation. The confidentiality impact is genuine - a successful attacker reads the full blocks table - but integrity and availability are unaffected. The true priority depends on resolving the PR:N vs. authenticated discrepancy: if the endpoint is reachable without any token on default installs, risk is higher; if publish tokens are required, risk is moderate and bounded to authorized users who escalate their read scope.

Exploit ScenarioDerived

An attacker who can reach the SiYuan API endpoint - either via the network or through a publish-mode session - sends a crafted GET or POST request to fullTextSearchBlock with method=1 and a query parameter containing a UNION SELECT payload. The injected query returns rows from the full blocks table alongside normal search results, allowing the attacker to iteratively dump all document content and metadata that the owner has not explicitly exposed via publish controls. The UNION-based pattern is well-documented and requires no special tooling beyond a standard HTTP client.

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

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

Alert me

AnalysisAIv1 – Sep 09, 2026

SQL injection in SiYuan's fullTextSearchBlock endpoint (versions before v3.8.2) allows read-level database access to the entire blocks table by injecting UNION SELECT statements into the method=1 query parameter. The vulnerability bypasses publish-access controls, exposing document content and sensitive block attributes that the operator intended to keep private. No public exploit or CISA KEV listing is confirmed at time of analysis, but the straightforward UNION-based injection pattern and availability of a GitHub security advisory make reproduction low-effort.

RemediationAI

Upgrade to SiYuan v3.8.2 or later, which resolves the injection per the vendor advisory GHSA-336w-67gx-gx2h. If immediate upgrade is not possible, restrict network access to the SiYuan HTTP API to localhost or a trusted VPN segment, effectively converting the AV:N vector to a local one. Do not expose SiYuan's API port directly to the internet, as this minimizes the attack surface regardless of patch status. Disabling the publish feature entirely removes the publish-access-control bypass scenario but does not patch the underlying injection.

Affected VersionsENISA

SiYuan 0 <3.8.2

Affected Packages

euvd siyuan fix: 3.8.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

SiYuan (cpe:2.3:a:siyuan-note:siyuan) is a self-hosted, local-first personal knowledge management and note-taking application that stores content in a SQLite database as 'blocks'. The fullTextSearchBlock API endpoint performs full-text search and accepts a method parameter; when method=1, the query parameter is passed unsanitized into a SQL statement, allowing classic UNION SELECT injection (CWE-89). The publish-access control model in SiYuan is intended to gate which blocks or workspaces are visible to publish-mode consumers versus authenticated owners, but the injection bypasses that layer entirely by directly querying the underlying blocks table.

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 (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Description explicitly states 'authenticated', so PR:L; confidentiality-only impact matches UNION SELECT read-only injection with no integrity or availability effect.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 09, 2026 - 12:03 EUVD
CVE Published
Sep 09, 2026 - 11:20 cve.org
HIGH 8.7

DescriptionCVE.org

siyuan versions before v3.8.2 contain an authenticated SQL injection vulnerability in the fullTextSearchBlock endpoint's method=1 query parameter. Attackers can inject UNION SELECT statements to read the entire blocks table, bypassing publish-access controls and exposing all document content and sensitive attributes.

Technical POC Analysis

CWE-89: SQL injection in SiYuan's full-text search endpoint.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

SiYuan users face unauthorized exposure of internal documents and metadata through a SQL injection vulnerability in the search function affecting all versions before v3.8.2. Unauthenticated attackers can read the complete database table, including content marked as private or publication-restricted, creating significant confidentiality risk for organizations storing proprietary research, operational knowledge, or sensitive meeting notes.

Business Impact: High
Compensating Controls

Restrict network access to the fullTextSearchBlock endpoint using firewall rules or VPN-only authentication; deploy Web Application Firewall rules to detect and block SQL injection patterns (UNION SELECT, multiple statements) in search parameters; disable the fullTextSearchBlock functionality entirely if it is not mission-critical; monitor application logs continuously for SQL injection attack patterns; isolate sensitive SiYuan instances to air-gapped or restricted-access networks until patching; no public exploit identified at time of analysis.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Low
niche self-hosted personal knowledge management app
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 No
EPSS 0.3%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
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

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