Description
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.
Published: 2026-08-12
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan versions before 3.7.4 contain a second‑order SQL injection flaw in the attribute‑view template columns that expose the queryBlocks function. The function uses raw string substitution instead of parameterized queries, allowing attackers to embed crafted template columns that execute arbitrary SQL against the database when a package is imported and rendered. The resulting vulnerability can be leveraged to read or write data across notebooks, effectively giving an attacker read/write access to all user data. This is a high‑severity flaw classified under CWE-89 with a CVSS score of 8.8.

Affected Systems

The affected product is Siyuan Note, specifically all releases prior to version 3.7.4. No specific sub‑versions beyond the overall cut‑off are enumerated in the advisory, but any installation running an earlier build is at risk.

Risk and Exploitability

The CVSS score indicates that successful exploitation would have major impact. The EPSS score is not available, so no direct exploitation likelihood is known; the vulnerability is not yet listed in the CISA KEV catalog. Attackers would need to deliver a malicious SiYuan document or package that a victim opens or imports. Therefore the most likely exploitation scenario involves a local user interface or a supply‑chain style delivery where an attacker supplies a forged package containing a crafted queryBlocks template column. Once imported, arbitrary SQL would run with the privileges of the running SiYuan process.

Generated by OpenCVE AI on August 12, 2026 at 22:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest security release of SiYuan (v3.7.4 or newer) to remove the SQL injection flaw.
  • Avoid importing or opening documents or packages from untrusted or unknown sources, especially those that may contain custom template columns.
  • If an immediate update is not possible, inspect imported packages for queryBlocks template columns and either remove them or edit them to use safe parameterized statements before rendering.

Generated by OpenCVE AI on August 12, 2026 at 22:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 12 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 12 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Description 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.
Title SiYuan before v3.7.4 SQL Injection via queryBlocks template
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.8, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-12T20:54:52.026Z

Reserved: 2026-08-10T15:11:49.794Z

Link: CVE-2026-72807

cve-icon Vulnrichment

Updated: 2026-08-12T20:41:29.588Z

cve-icon NVD

Status : Received

Published: 2026-08-12T20:17:52.837

Modified: 2026-08-12T21:17:40.310

Link: CVE-2026-72807

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T23:00:05Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')