Skip to main content

SiYuan EUVDEUVD-2026-57408

| CVE-2026-72807 HIGH
SQL Injection (CWE-89)
8.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft SiYuan package with malicious template column
  2. Delivery
    Distribute package via community platform or direct delivery
  3. Exploit
    Victim imports package into SiYuan instance
  4. Execution
    Kernel renders attribute-view template column
  5. Persist
    queryBlocks executes injected raw SQL
  6. Impact
    Attacker reads or writes all notebook 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

Exploitation requires two specific conditions to be met: first, the victim must import a SiYuan document or installable package that contains an attribute-view with a malicious template column referencing the queryBlocks function; second, the imported content must be rendered by the SiYuan kernel, which triggers evaluation of the template column. The attribute-view template column feature invoking queryBlocks must be present and enabled, which appears to be part of default SiYuan functionality rather than a non-default configuration. Exploitation is limited by: (1) mandatory user interaction - the victim must actively obtain and import the crafted package, requiring a social-engineering step; (2) the attacker has no direct network access to the victim's kernel and cannot trigger the injection without the victim performing the import action; and (3) impact is scoped to the victim's local SiYuan database and notebooks, not the broader operating system or other applications. There is no indication that default SiYuan deployments expose the kernel to the network in a manner enabling direct unauthenticated injection without the document import prerequisite.

Impact

The CVSS 4.0 score of 8.8 is driven by high confidentiality and integrity impacts on both vulnerable (VC:H/VI:H) and subsequent systems (SC:H/SI:H), reflecting unrestricted read and write access to all notebook data. AC:H and AT:P are appropriate - the attacker must craft a valid SiYuan package and route it to a victim who imports it, introducing real social-engineering friction. UI:P acknowledges passive user interaction (import action). EPSS data was not provided in the available intelligence, preventing probabilistic exploitation likelihood assessment. The vulnerability is not listed in CISA KEV and no POC code is confirmed, which meaningfully reduces immediate opportunistic risk. Real-world risk is moderate-to-high for users who regularly import packages or documents from community repositories or untrusted parties; risk is low for purely offline, single-user deployments that never import external packages. The second-order nature makes this harder to detect at runtime than a conventional injection, and defenders relying solely on import-time scanning may have false confidence.

Exploit ScenarioDerived

An attacker publishes a malicious SiYuan note package to a community sharing platform or sends it directly to a target, embedding a crafted SQL payload within an attribute-view template column that invokes queryBlocks. When the victim downloads and imports the package into their SiYuan instance and the template column is rendered, the kernel executes the injected SQL against the local database, enabling the attacker's payload to exfiltrate all notebook content or insert malicious data across the workspace. No POC code has been confirmed, but the attack requires only knowledge of SiYuan's template syntax and a social-engineering vector to deliver the package.

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

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

Alert me

AnalysisAIv1 – Aug 12, 2026

Second-order SQL injection in SiYuan's attribute-view template columns allows a remote attacker to execute arbitrary SQL against a victim's local kernel database by distributing a crafted document or package. All SiYuan releases before v3.7.4 are affected; the queryBlocks function processes attacker-controlled template column data through raw string substitution rather than parameterized queries, granting full read and write access across all notebooks upon import and render. No public exploit has been identified at time of analysis, but the attack is practically feasible in any community or collaborative context where SiYuan packages are exchanged.

RemediationAI

Upgrade SiYuan to v3.7.4 or later, which resolves the vulnerability by replacing string substitution with parameterized queries in the queryBlocks function. The vendor advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x67c-8pwr-m8g3 should be consulted to confirm the fix scope. As an immediate compensating control prior to patching, avoid importing SiYuan documents or packages from untrusted, unverified, or community-sourced repositories - this directly removes the second-order trigger condition, though it will restrict collaborative workflows. Users who must import external packages should do so only from known, trusted sources and review template column content before rendering. No network-level control (firewall rule or WAF) is effective here because the injection is triggered locally by the victim's own kernel, not by a direct remote network request to a listening service.

Affected VersionsENISA

SiYuan 0 <3.7.4

Affected Packages

go github.com/siyuan-note/siyuan/kernel fix: 0.0.0-20260723035036-0a176345e02a
euvd siyuan fix: 3.7.4

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 an open-source, locally-run personal knowledge-management and note-taking application whose kernel manages notebooks and data blocks via an embedded database. Its attribute-view feature supports template columns that can invoke the internal queryBlocks function to query the underlying database dynamically. The vulnerability is classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) in its second-order variant: malicious SQL payload is embedded in an attribute-view template column within a crafted document, stored without execution on import, and then silently triggered when the template is rendered by the kernel. Because the injection point is deferred to render time, input-time validation or content-scanning at import would not catch it. The CPE identifier cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:* confirms all platform variants of the application are affected prior to v3.7.4.

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

Network delivery but high complexity and required user interaction (import); scope changes because SQL access spans all notebooks beyond the template's authority boundary.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

2
Patch available
Aug 12, 2026 - 20:03 EUVD
CVE Published
Aug 12, 2026 - 19:07 cve.org
HIGH 8.8

DescriptionCVE.org

SiYuan versions before v3.7.4 contain a second-order SQL injection vulnerability in attribute-view template columns that expose the queryBlocks function, which executes raw SQL using string substitution instead of parameterized queries. Attackers can distribute malicious SiYuan documents or packages with crafted template columns that execute arbitrary SQL on a victim's kernel when the package is imported and rendered, enabling read and write access across notebooks.

Latest POC

1 public PoC link from github

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

SiYuan users face critical risk of notebook data theft and manipulation through a SQL injection flaw in document-sharing workflows affecting all versions before v3.7.4; no public exploit identified at time of analysis, though the attack vector is practical in any collaborative or package-sharing context. Any organization distributing SiYuan documents across teams, community repositories, or external partners must assume user data has or could be compromised. Immediate action is needed: inventory affected systems, restrict external package imports, and prepare for emergency patching once SiYuan releases version v3.7.4.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable SiYuan document and package imports from external sources; implement network segmentation to restrict database access from affected systems; disable collaborative package-sharing features; provide user training on risks of importing packages from untrusted sources; consider air-gapping critical SiYuan instances until patched.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
niche open-source personal knowledge management app, limited enterprise adoption
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor 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.2%
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
No
Human Impact
High
Technical Impact
Total

Priority Score

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

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