CVE-2026-73043

SiYuan before v3.7.4 Remote Code Execution via Template Calculation

Published Aug 15, 2026 CVSS 4.0 · 9.4 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 17, 2026, 3:48 PM
Reserved
Aug 10, 2026, 7:06 PM
Status
Deferred
Published
Aug 15, 2026, 10:16 PM
Modified
Aug 26, 2026, 4:57 PM