CVE-2026-72811
Received Received - Intake

SiYuan SQL Injection via Unsanitized Search Query

Vulnerability report for CVE-2026-72811, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-14

Last updated on: 2026-08-14

Assigner: VulnCheck

Description

SiYuan versions <= v3.7.2 contain a SQL injection vulnerability in the backlink/mention search query (kernel/model/backlink.go), which concatenates stored block metadata (title, name, alias, anchor text) and the client-supplied keyword into a SQL MATCH/search statement while escaping only the double-quote character and not the single quote. A single quote in the client keyword (first-order, reachable by an anonymous or RoleReader user on the publish surface) or in stored document metadata (second-order) breaks out of the string literal. Because the query runs on the main read-write siyuan.db handle via a statement-stacking-capable driver, an attacker can execute arbitrary SQL, enabling cross-notebook read and write. Fixed in v3.7.4.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-14
Last Modified
2026-08-14
Generated
2026-08-14
AI Q&A
2026-08-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
siyuan siyuan to 3.7.4 (exc)
siyuan siyuan to 3.7.2 (inc)
siyuan siyuan 3.7.4

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a SQL injection vulnerability in SiYuan note-taking app versions <= v3.7.2. It occurs in the backlink/mention search feature where user input and stored metadata are improperly concatenated into a SQL MATCH statement. Only double quotes are escaped, allowing single quotes to break out of string literals. This enables arbitrary SQL execution through the main database handle, potentially allowing cross-notebook data access and modification.

Detection Guidance

To detect this vulnerability, check if your SiYuan instance is running a version <= v3.7.2. Inspect the backlink search functionality for improperly escaped single quotes in SQL MATCH statements. Look for unusual database queries or unauthorized data access patterns in logs.

Impact Analysis

An attacker could exploit this to read or write data across notebooks, even as an anonymous user on the publish surface. The vulnerability allows cross-notebook data access and modification through SQL injection, potentially leading to data theft, corruption, or unauthorized changes to stored notes and metadata.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating confidentiality and integrity requirements in GDPR and HIPAA. It may result in data breaches, unauthorized disclosure of personal or health information, and failure to maintain data integrity, potentially leading to regulatory penalties and loss of compliance certifications.

Mitigation Strategies

Immediately upgrade SiYuan to version v3.7.4 or later. If upgrading is not possible, disable the backlink/mention search feature or restrict access to the publish surface. Review database permissions to limit write operations.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-72811. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart