Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2567+ Articles
161+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-72811: SiYuan SQL Injection in Backlink Search Scores Perfect 10.0
CVE-2026-72811: SiYuan SQL Injection in Backlink Search Scores Perfect 10.0

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-72811

CVE-2026-72811: SiYuan SQL Injection in Backlink Search Scores Perfect 10.0

SiYuan note-taking app up to v3.7.2 is vulnerable to SQL injection via stored block metadata in the backlink search query path.

Dylan H.

Security Team

August 15, 2026
3 min read

Affected Products

  • SiYuan <= v3.7.2

Overview

A perfect-score SQL injection vulnerability has been identified in SiYuan, a popular self-hosted note-taking and knowledge management application. Tracked as CVE-2026-72811 with a CVSS 10.0 (Critical) rating, the flaw resides in the backlink and mention search query handling within the Go backend (kernel/model/backlink.go). An attacker who can control stored block metadata — titles, names, aliases, or anchor text — can inject arbitrary SQL that executes against the application's SQLite database.

Vulnerability Details

SiYuan's backlink/mention feature searches across block metadata to surface related notes. The vulnerability occurs because:

  1. User-controlled metadata (block title, name, alias, anchor text) is stored in the database and later retrieved to build SQL queries.
  2. The code in kernel/model/backlink.go concatenates this stored metadata and a client-supplied keyword directly into a SQL MATCH/search statement.
  3. While the code escapes double-quote characters, it does not escape single quotes or other SQL metacharacters, leaving the statement vulnerable to injection through stored content.

Because the injected SQL originates from stored block data rather than only from the immediate client request, this is a stored/second-order SQL injection — any user who can create or edit blocks (including the local user, shared workspace participants, or API consumers) can plant malicious metadata that triggers when another user performs a backlink search.

Impact

AttributeValue
CVSS Score10.0 (Critical)
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone (varies by deployment)
User InteractionNone
ImpactFull database read/write; potential host-level access via SQLite extensions

Given SiYuan's use of SQLite, successful injection can enumerate all notebook content, exfiltrate notes, modify or delete data, and — depending on SQLite configuration — potentially load extensions for OS-level command execution.

Affected Versions

  • SiYuan ≤ v3.7.2 — all versions at or below this release are vulnerable.

Patch

Users should upgrade to the version following v3.7.2 once it is available. Monitor the SiYuan releases page for a patched build that uses parameterized queries or properly sanitizes all metadata fields before inclusion in SQL statements.

Remediation

  1. Update SiYuan to the patched release as soon as it is published.
  2. Restrict access: If SiYuan is network-accessible (not just localhost), place it behind authentication or a firewall. Exposing SiYuan directly to untrusted networks significantly amplifies the blast radius.
  3. Audit block content: Review recently created blocks for suspicious SQL fragments (single quotes, SQL keywords like UNION, SELECT, DROP) in titles, names, or aliases.
  4. Isolate the deployment: Run SiYuan in a container or VM with minimal filesystem access to limit the impact of any SQLite extension abuse.

Temporary Workaround

If you cannot update immediately:

  • Disable network access to SiYuan's API port (default: 6806) from untrusted hosts using a firewall or reverse-proxy allowlist.
  • Avoid shared workspaces with untrusted parties until the patch is applied.

Why CVSS 10.0?

A perfect CVSS score requires no network barriers, no privilege requirements, and complete impact across confidentiality, integrity, and availability. CVE-2026-72811 meets these thresholds: the stored injection vector means no special credentials are needed beyond the ability to view content, the database contains all user notes (confidentiality), writes can corrupt or delete data (integrity and availability), and in some configurations SQLite extensions could escalate to the host (system-level impact).

References

  • NVD — CVE-2026-72811
  • SiYuan — GitHub
  • OWASP SQL Injection
#CVE#SiYuan#SQL Injection#Database Security#Go#Note-Taking

Related Articles

CVE-2026-73043: SiYuan RCE via Template Calculation Operator

Critical RCE in SiYuan note-taking app. Unsanitized Go templates allow script injection for all versions before v3.7.4.

2 min read

SiYuan Stored XSS via Database Menu Metadata (CVE-2026-73042)

SiYuan before v3.7.4 fails to escape database menu metadata, enabling stored XSS in group, view, and field-edit menus. CVSS 9.0 Critical.

3 min read

SiYuan Column Width API Stored XSS (CVE-2026-73044)

SiYuan before v3.7.4 allows stored XSS via unescaped table column width values in style attributes. CVSS 9.0 Critical. Patch to v3.7.4.

3 min read
Back to all Security Alerts