SiYuan CVE-2026-73043
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain template-authoring access in shared workspace
-
DeliveryCraft Go template with HTML/JS payload
-
ExploitDeliver poisoned notebook/database to victim
-
ExecutionVictim opens document in desktop client
-
PersistPayload renders in Node-enabled Electron renderer
-
ImpactExecute arbitrary code on victim host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) the attacker to be able to create or edit a Template calculation operator in a SiYuan workspace - i.e., at least low-privileged authoring access (PR:L), typically via a shared/collaborative or attacker-supplied notebook; (2) the use of the desktop Electron client, whose renderer runs with Node integration enabled - this is the exact condition that upgrades stored XSS to RCE; and (3) victim interaction (UI:P) - the target must open the database/note so the unsanitized rendered output executes. Limiting factors: it is not unauthenticated (the attacker needs write/template access to the content the victim opens), it depends on the desktop client rather than a purely browser-based view, and it affects only versions before v3.7.4. |
| Impact | Signals are largely consistent toward high real-world severity: the CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P) yields 9.4 (Critical), reflecting network reach, low complexity, and high vulnerable- and subsequent-system impact via the Electron scope break. Two limiting factors temper this: PR:L means the attacker must be able to author or contribute templates (some privilege/trust in the workspace), and UI:P means a victim must open the malicious database/note for the payload to execute - so this is a shared-document or multi-user/collaboration attack, not drive-by unauthenticated RCE. No EPSS score, POC, or KEV status was provided, so widespread automated exploitation is not evidenced; treat it as a high-priority patch for any multi-user or shared-notebook SiYuan deployment while recognizing single-user local installs face lower practical exposure. |
| Exploit ScenarioDerived | An attacker with template-authoring access crafts a Go template calculation containing a malicious HTML/JavaScript payload and shares the notebook or database with a target. When the victim opens the document in the SiYuan desktop client, the stored payload renders in the Electron renderer with Node integration and executes attacker code on the victim's host. Given AC:L the crafting is straightforward, but UI:P means the attack hinges on the victim opening the poisoned content; no public POC has been identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 15, 2026
Remote code execution in SiYuan before v3.7.4 lets an authenticated attacker who can author Template calculation operators inject HTML and JavaScript that runs in the Electron desktop renderer with Node integration enabled, turning a stored cross-site scripting flaw into full arbitrary code execution when a victim opens the shared notebook/database. The Go template output is stored verbatim without sanitization, so payloads persist and fire on document render. No public exploit or CISA KEV listing has been identified at time of analysis, though VulnCheck published an advisory and the vendor issued a GitHub security advisory (GHSA-rwh7-gm74-67h6).
RemediationAI
Vendor-released patch: upgrade to SiYuan v3.7.4 or later, which addresses the unsanitized Template calculation rendering (see GHSA-rwh7-gm74-67h6). Until upgrading, avoid opening databases, notebooks, or documents received from untrusted sources, since the payload executes on render; in multi-user or shared-workspace setups restrict template-authoring privileges to trusted users and review existing templates for embedded HTML/JavaScript. As a defense-in-depth measure operators can isolate the desktop client (e.g., run untrusted content only in a disposable VM), accepting the trade-off of reduced collaboration convenience; note that disabling Node integration is not a user-configurable option in the shipped client, so patching is the only reliable fix. Cite the advisories above when tracking the fix.
Affected ProductsAI
SiYuan (siyuan-note/siyuan) desktop client, all versions before v3.7.4, is affected; the issue is fixed in v3.7.4. No CPE identifiers were provided in the source data. The authoritative references are the vendor GitHub Security Advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-rwh7-gm74-67h6 and the VulnCheck advisory at https://www.vulncheck.com/advisories/siyuan-before-remote-code-execution-via-template-calculation.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SiYuan is a self-hosted, block-based personal knowledge-management / note-taking application whose desktop client is built on Electron. The flaw lives in the Template calculation operator, which renders user-authored Go (text/template or html/template used unsafely) content and writes the rendered result directly into the note without output encoding. Because the Electron renderer runs with Node integration enabled, DOM-injected JavaScript is not confined to a browser sandbox but can reach Node APIs (child_process, fs), escalating a classic CWE-79 (Improper Neutralization of Input During Web Page Generation / stored XSS) into host-level code execution. No CPE strings were supplied in the intelligence, so exact affected package identifiers must be taken from the vendor advisory rather than NVD CPE data.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Attacker needs template-authoring access (PR:L) and victim must open the content (UI:R); Electron Node integration breaks sandbox to the OS (S:C) with full C/I/A compromise.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
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.
Executive ViewAI
SiYuan versions before 3.7.4 contain a critical remote code execution vulnerability in the Electron desktop application that allows authenticated users with template authoring capabilities to inject malicious code executing with full system privileges; no public exploit identified at time of analysis. Compromised shared notebooks can lead to complete data exfiltration, system access for threat actors, and lateral movement across the organization. Immediate action is required to restrict template permissions and audit for indicators of compromise.
No vendor-released patch identified at time of analysis. Restrict template calculation operator access to verified administrators only; implement mandatory code review and formal approval workflows for all template creation; disable Electron Node integration if available through application configuration; isolate SiYuan instances on dedicated network segments separate from critical business systems; conduct mandatory security awareness training on template-based attack risks; enforce organizational policies prohibiting import of templates from untrusted external sources; enable comprehensive audit logging and alerting for all template modifications and access events.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB