Skip to main content

SiYuan CVE-2026-101091

| EUVDEUVD-2026-88559 HIGH
SQL Injection (CWE-89)
2026-09-28 VulnCheck GHSA-7fjj-5cqf-p4pm
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious .sy document with write SQL in embed block
  2. Delivery
    Deliver via share or sync to victim
  3. Exploit
    Victim opens or indexes document
  4. Execution
    SQL auto-executes against siyuan.db
  5. Impact
    Exfiltrate DB via VACUUM INTO or tamper data

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

Requires that a victim's SiYuan instance (before v3.8.4) process an attacker-supplied .sy document containing a block-query embed block with a non-read-only SQL statement; execution is triggered automatically by background indexing, rendering, or export - no login or explicit query action is needed once the malicious document is present. Limiting factors: the attacker must first get the hostile .sy file onto the victim's instance (via document sharing, sync, or import), so this is passive user interaction (UI:P) rather than direct remote invocation; the vulnerable path relies on the pre-patch substring 'select' check and the vitess parser's fall-through-to-execute behavior, both fixed in v3.8.4. The malicious SQL runs against the local SQLite siyuan.db, enabling data exfiltration (e.g. VACUUM INTO to a chosen file path) and data tampering (DELETE/UPDATE/ATTACH/PRAGMA writable_schema).

Impact

This is a moderate-priority issue whose real-world risk is constrained by the delivery model rather than by exploit difficulty. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N, 7.1) correctly captures the key nuance: exploitation is network-reachable and needs no authentication, but it DOES require passive user interaction (UI:P) - a victim must open, import, or sync an attacker-crafted .sy document, after which malicious SQL fires automatically during background indexing, rendering, or export. This is effectively a client-side/passive-content attack, not a directly server-facing remote exploit, so PR:N should not be read as 'trivially internet-exploitable.' No EPSS score, no CISA KEV listing, and no SSVC decision data were provided, and no public exploit was supplied (the source-code evidence is the vendor's own fix and regression tests, NOT a weaponized POC). The flaw is genuine and well-substantiated - reported by VulnCheck with a vendor advisory (GHSA-67p9-hm94-xwf3), a fix commit, and an authoritative root-cause: the pre-patch code gated 'read-only' purely on whether the statement contained the substring 'select', which is trivially bypassed by comments (-- select), subqueries, or stacked statements, and the vitess parser fell back to executing unparsed statements verbatim. Net: a real, confirmed vulnerability with an available patch, but exploitation depends on social-engineering a user into processing a hostile note, which keeps practical risk below what the 7.1 alone might suggest.

Exploit ScenarioDerived

An attacker crafts a malicious .sy note document containing a block-query embed block whose SQL is non-read-only (e.g. VACUUM INTO '/path/leak.db' -- select to exfiltrate the database to an attacker-chosen file, or DELETE FROM blocks to destroy index data), then shares or syncs it to a victim. When the victim's SiYuan instance opens, indexes, renders, or exports the document, the SQL executes automatically against siyuan.db with no authentication or further action. No public exploit code was provided, though the vendor regression tests enumerate concrete bypass payloads.

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 28, 2026

SiYuan versions before v3.8.4 contain a SQL injection vulnerability (CWE-89) in block query embed blocks that allows remote, unauthenticated attackers to execute arbitrary SQL against the local siyuan.db database, but exploitation requires the victim to import a malicious .sy document (UI:R). Successful exploitation enables high confidentiality impact (e.g., data exfiltration via VACUUM INTO) and low integrity impact (data tampering), with no availability impact, per the independent CVSS 3.1 assessment. No public exploit or CISA KEV entry is currently known, but a vendor patch (v3.8.4) is available.

RemediationAI

Upgrade to SiYuan v3.8.4 or later, which includes the fix (commit e8ace0c89182c7ee1a1298ff2a849bb6a83dfdec) and the read-only SQL validation. See the vendor advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-67p9-hm94-xwf3 for details. If immediate patching is not possible, avoid importing or syncing .sy documents from untrusted sources, as the vulnerability triggers automatically when such documents are indexed, rendered, or exported; this mitigation limits collaboration and sync functionality. Disabling embed block auto-indexing is not supported without code changes, so restricting document sources is the primary compensating control. No other workarounds are provided by the vendor.

Affected VersionsENISA

SiYuan 0 <3.8.4

Affected Packages

euvd siyuan fix: 3.8.4

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 is a local-first knowledge management application that stores documents as .sy files and maintains a SQLite database (siyuan.db) for indexing and querying content. The vulnerable feature allows embedding SQL block queries into documents; before v3.8.4, the code only checked for the substring 'select' to determine if a query was read-only, and on parser failure it would execute the statement as-is. This allowed attackers to include statements such as DELETE, UPDATE, ATTACH, or VACUUM INTO (with a comment containing 'select') that would run automatically during background indexing, rendering, or export operations. The fix introduces a proper read-only validation function (CheckReadonlyBlockQueryStatement) that rejects non-read-only statements at all block-query execution sinks.

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 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.1 HIGH

Network-delivered malicious document needing victim to open/process it (UI:R), no auth (PR:N); SQL can exfiltrate the DB (C:H) and tamper rows (I:L), no availability loss claimed (A:N).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/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
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

SiYuan versions before v3.8.4 fail to properly validate SQL statements in block query embed blocks executed against siyuan.db. Attackers can craft malicious .sy documents with non-read-only SQL statements that execute automatically during background indexing, rendering, or export operations without authentication.

Technical POC Analysis

CWE-89 (SQL injection) in the SiYuan kernel (Go module github.com/siyuan-note/siyuan/kernel).

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 versions prior to v3.8.4 are affected by a high-severity SQL injection vulnerability that could allow attackers to access or modify sensitive data stored within the application's database. Organizations using affected versions are at risk, as a user only needs to import a malicious document to trigger the flaw. No public exploit identified at time of analysis, but the availability of a vendor patch makes immediate upgrading a critical priority.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 85% exploitable
Prevalence
Medium
Popular open-source personal knowledge-management/note app, sizable user base but not enterprise-ubiquitous
Data Quality
5 sources
Confidence: Medium

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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

CVE-2026-29183 CRITICAL POC
9.3 Mar 06

Reflected XSS in SiYuan knowledge management before 3.5.9.

CVE-2026-25539 CRITICAL POC
9.1 Feb 04

SiYuan knowledge management system prior to 3.5.5 has a path traversal in /api/file/copyFile allowing arbitrary file ope

CVE-2024-2692 CRITICAL POC
9.0 Apr 04

SiYuan version 3.0.3 allows executing arbitrary commands on the server. Rated critical severity (CVSS 9.0), this vulnera

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