External risk intelligence

SiYuan Backlink Search SQL Injection Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.9)

CVE-2026-72811

SiYuan is a note-taking and knowledge management application that explicitly includes a publish surface feature. The vulnerability is reachable via this public-facing interface, which is designed to be internet-accessible for sharing content, making it a common deployment pattern for users of the software.

SQL Injection

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A critical vulnerability has been identified in SiYuan, a knowledge management application, that allows for the execution of arbitrary SQL commands. This issue stems from how user-supplied keywords are processed in search queries, potentially enabling unauthorized access and modification of data across notebooks. The main concern is confirming the relevance and exposure of this vulnerability to our deployed systems.

  • Unauthorized data access and modification possible.
  • Critical flaw in a widely used knowledge management tool.
  • Confirm relevance and exposure to our environment.

Attack Path

How an attacker could exploit the issue

An attacker can exploit this vulnerability by crafting a special search query. If the application displays backlinks or mentions to anonymous or authenticated users, the attacker can inject a malicious input into the search keyword. This input can then be used to manipulate the application's database query, allowing the attacker to execute arbitrary SQL commands, which could lead to unauthorized access and modification of data across different parts of the application.

  • Publicly accessible publish surface required.
  • Malicious keyword in backlink search.
  • Arbitrary SQL execution, cross-notebook data access.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow an attacker to execute arbitrary SQL commands on the SiYuan database. This could lead to unauthorized access and modification of data across different notebooks, potentially exposing or altering sensitive information stored within the application. The attack is possible when the application's publish surface feature is enabled and accessible.

  • Notebook data could be affected.
  • SQL injection via search queries.
  • Cross-notebook data read/write.

Operational Fix

Recommended remediation, mitigation, and detection steps

This SQL injection vulnerability in SiYuan affects the backlink search functionality, potentially allowing unauthorized users to execute arbitrary SQL commands. Ownership likely falls to the application or platform team responsible for SiYuan deployments, with initial actions focusing on identifying affected instances, verifying exposure and business criticality, and coordinating remediation with vendor advisories.

  • Application owners should confirm affected instances.
  • Verify network exposure and data criticality.
  • Plan remediation with vendor guidance.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is SiYuan?

SiYuan is a privacy-focused knowledge management application designed for note-taking and collaborative document organization. It allows users to store personal or team information in local notebooks and features a specialized 'publish surface' that enables users to share these documents online. Because it stores metadata about these documents, it relies on an internal database to manage relationships between notes, backlinks, and search queries.

What does CVE-2026-72811 mean?

This is a SQL injection vulnerability categorized under CWE-89. In simple terms, the application fails to properly sanitize user input before including it in database commands. Because the software only filters double quotes and ignores single quotes, an attacker can use a single quote to 'break out' of the intended search command. This allows them to run their own unauthorized database instructions, potentially letting them read or modify data stored anywhere in the application's notebooks.

How can an attacker trigger this vulnerability?

An attacker triggers this by providing a specially crafted search keyword containing a single quote. This can happen directly through the publish surface search bar or indirectly via stored document metadata like titles or aliases. Importantly, this only affects the backlink and mention search functionality. If the application is not performing these specific search operations, or if the search keyword does not contain a single quote, the flaw is not triggered.

Is my instance at risk?

Halo Surface Signal indicates this is a 'Likely' risk for many users. Because SiYuan is frequently used to share content, the vulnerability is reachable through the internet-facing publish surface. If your instance is configured to share notebooks publicly or is otherwise exposed to the internet, you should treat this as a high priority. Even if access is restricted to authenticated users, the ability for an attacker to manipulate the underlying database remains a significant concern.

What should I do to secure my SiYuan installation?

The primary response is to update your software to version 3.7.4 or later, which resolves the input sanitization flaw. Before applying updates, identify all active SiYuan deployments in your environment and assess which ones have the public-facing publish surface enabled. Once you have confirmed your footprint, prioritize patching those internet-accessible instances immediately to prevent unauthorized database access.

References