Skip to main content

SiYuan CVE-2026-93591

| EUVDEUVD-2026-82910 HIGH
SQL Injection (CWE-89)
2026-09-18 VulnCheck GHSA-4m3r-2vx9-4x56
7.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Reach public publish-mode instance
  2. Delivery
    Craft inline HTML span with SQL payload
  3. Exploit
    Invoke getGraph query2Stmt
  4. Execution
    Break out of SQL string literal
  5. Impact
    Exfiltrate cross-notebook private 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 the target SiYuan instance to be running in publish/sharing mode with the getGraph endpoint reachable by untrusted readers or anonymous visitors; the injection is delivered through a tag value inside an inline HTML span tag that breaks out of an unescaped SQL string literal. Limiting factors: publish mode is a non-default, deliberately-exposed configuration, so private single-user installs are not affected; the description indicates an anonymous visitor suffices once publish mode is public, meaning little to no authentication is required in that deployment. Impact is primarily confidentiality (cross-notebook private data) with limited write/availability effects on the read-write database.

Impact

The CVSS 4.0 base score of 7.2 (High) rests on AV:N/AC:L/PR:L/UI:N with VC:H (high confidentiality impact) plus limited integrity/availability (VI:L/VA:L), reflecting an SQL injection that reaches a read-write database and enables cross-notebook data exfiltration. No EPSS score is provided and the CVE is NOT in CISA KEV, so there is no evidence of active exploitation. No explicit POC is flagged, though a detailed VulnCheck advisory and a GitHub security advisory (GHSA-5rwv-4j4c-f954) describe the exact injection path (raw tag concatenation in graph.go query2Stmt via inline HTML span tags to getGraph). There is a notable signal conflict: the vendor vector encodes PR:L (authenticated publish-mode reader), yet the description explicitly states an 'anonymous visitor' can inject in publish mode - this argues for unauthenticated (PR:N) reachability and would raise real-world risk. The key mitigating factor is that exploitation requires SiYuan's publish/sharing mode to be enabled and publicly exposed, which is a deliberate, non-default deployment choice; against a private single-user install the endpoint is not exposed. Overall this is a genuine data-exfiltration risk for the subset of installs running publish mode, but the niche deployment footprint and absence of exploitation telemetry make it a moderate rather than emergency priority.

Exploit ScenarioDerived

An attacker browsing a SiYuan instance running in public publish mode crafts a note/tag containing an inline HTML span tag whose tag value carries a single-quote-breaking SQL payload, then triggers the getGraph endpoint. Because query2Stmt concatenates the tag value raw into a SQL string literal, the payload executes against the read-write database, letting the attacker read private content across notebooks. The VulnCheck and vendor GHSA advisories document the exact code path, but no packaged exploit is flagged.

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

SQL injection in SiYuan versions before 3.8.3 allows unauthenticated remote readers, in deployments running publish/sharing mode, to execute arbitrary SQL against the read-write database through the getGraph endpoint and exfiltrate private data across notebooks. The CWE-89 flaw arises in graph.go's query2Stmt function, where tag values are concatenated raw into SQL string literals without escaping single quotes, and it can be reached via inline HTML span tags. The vendor released a fix in 3.8.3, and no public exploit code or CISA KEV confirmed active exploitation was identified at time of analysis; the CVSS 4.0 base score is 7.2 (High) with high confidentiality impact.

RemediationAI

Upgrade SiYuan to version 3.8.3 or later, which is the vendor-released patch that addresses the unescaped tag concatenation in graph.go. If immediate upgrade is not possible, disable publish/sharing mode so the getGraph endpoint is not reachable by untrusted readers, understanding that this removes intended sharing functionality; alternatively, place the SiYuan publish interface behind authentication or a reverse-proxy rule that blocks or restricts access to the getGraph endpoint, though this may break graph rendering for legitimate readers. Because the injection is delivered through inline HTML span tag values, sanitizing or rejecting inline HTML tags from untrusted content can reduce exposure but is not a substitute for patching and may degrade note-display features. Refer to the GitHub advisory GHSA-5rwv-4j4c-f954 and the VulnCheck advisory for additional vendor guidance.

Affected VersionsENISA

SiYuan 0 <3.8.3

Affected Packages

euvd siyuan fix: 3.8.3

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

The vulnerability is a classic SQL injection (CWE-89) in the Go-based SiYuan note-taking application, whose backend uses a read-write database to store notebook content. In the graph.go file, the query2Stmt function builds SQL statements by directly concatenating tag values into SQL string literals without escaping single quotes. Because SiYuan supports inline HTML, a tag value inside a span tag can break out of the intended string literal and append arbitrary SQL, which is then executed when the getGraph endpoint is queried. The CPE string cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:* indicates all versions before 3.8.3 are affected, and EUVD records the vulnerable range as SiYuan 0 through 3.8.3. Exploitation requires that the instance be deliberately configured in publish or sharing mode so that the getGraph endpoint is reachable; the independent assessment rates the vector as AV:N/AC:L/PR:N/UI:N (unauthenticated network access, no user interaction), with high confidentiality impact and limited integrity and availability effects on the read-write database.

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

Description states an anonymous visitor can exploit publish mode, so PR:N; SQLi exfiltrates cross-notebook data (C:H) with limited write/DoS on the read-write DB (I:L/A:L).

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

Lifecycle Timeline

2
Patch available
Sep 18, 2026 - 14:02 EUVD
CVE Published
Sep 18, 2026 - 13:20 cve.org
HIGH 7.2

DescriptionCVE.org

SiYuan versions before 3.8.3 contain an SQL injection vulnerability in the graph.go query2Stmt function where tag values are concatenated raw into SQL string literals without escaping single quotes. A publish-mode reader or anonymous visitor can inject SQL via inline HTML span tags in the getGraph endpoint to execute arbitrary queries on the read-write database and exfiltrate private data across notebooks.

Technical POC Analysis

CWE-89 (SQL injection).

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 note-taking deployments that have publish/sharing mode enabled are exposed to a database injection flaw that can let remote parties read and exfiltrate private notebook content, including information never intended for sharing. Leadership should care because the exposure is to confidential business and personal knowledge stored in the platform, and remediation requires a version upgrade plus a configuration review of which instances are internet-facing. There is no indication of active exploitation, so the priority is rapid patching of exposed deployments and confirming publish mode is only enabled where justified.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigation: disable publish/sharing mode and restrict network access to affected SiYuan instances until the upgrade to 3.8.3 is completed.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
open-source self-hosted personal note-taking app, niche production footprint
Data Quality
4 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
Yes
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-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