Description
SiYuan versions before v3.7.4 contain a remote code execution vulnerability in the Template calculation operator, which renders user-authored Go templates and stores output verbatim without sanitization. Attackers can inject malicious HTML and JavaScript into template calculations that execute in the desktop client renderer with Node integration enabled, allowing arbitrary code execution when the database is opened.
Published: 2026-08-15
Score: 9.4 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan versions before 3.7.4 allow an attacker to inject arbitrary HTML and JavaScript through the template calculation operator, which renders user‑authored Go templates and stores the result verbatim without any sanitization. This flaw is a classic example of uncontrolled input leading to injection, classified as CWE‑79. When a maliciously crafted template is processed, the embedded code is executed in the desktop client’s renderer that has Node integration enabled, giving the attacker full control of the host system. The result is a full remote code execution capability that can be triggered simply by opening the compromised database file.

Affected Systems

Siyuan Note, version SiYuan before v3.7.4. The vulnerability affects all installations of the desktop client running the older release line, regardless of operating system, as the issue resides in the application logic itself.

Risk and Exploitability

The CVSS score of 9.4 indicates an exploit that can occur without authentication and provides complete compromise of the affected system. Exploitation requires the attacker to supply a malicious database containing the crafted template; the Node integration in the renderer must be enabled for the attack to succeed. The EPSS score is not available, but the lack of listing in the CISA KEV catalog suggests that public exploitation is not yet widespread. Nevertheless, the high severity and the simplicity of the trigger make this flaw a high‑priority risk for all affected users.

Generated by OpenCVE AI on August 15, 2026 at 23:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest upgrade, version 3.7.4 or newer, to eliminate the vulnerable template calculation code.
  • If an immediate upgrade is not possible, remove or disable Node integration in all renderer processes to prevent execution of embedded scripts.
  • Audit existing databases for the presence of malicious template expressions and quarantine any findings until a patch is applied.

Generated by OpenCVE AI on August 15, 2026 at 23:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 15 Aug 2026 22:00:00 +0000

Type Values Removed Values Added
Description SiYuan versions before v3.7.4 contain a remote code execution vulnerability in the Template calculation operator, which renders user-authored Go templates and stores output verbatim without sanitization. Attackers can inject malicious HTML and JavaScript into template calculations that execute in the desktop client renderer with Node integration enabled, allowing arbitrary code execution when the database is opened.
Title SiYuan before v3.7.4 Remote Code Execution via Template Calculation
First Time appeared B3log
B3log siyuan
Weaknesses CWE-79
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-15T21:44:48.494Z

Reserved: 2026-08-10T19:06:03.365Z

Link: CVE-2026-73043

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T22:16:54.200

Modified: 2026-08-15T22:16:54.200

Link: CVE-2026-73043

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T23:30:16Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')