Skip to main content

SiYuan CVE-2026-73043

CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-08-15 disclosure@vulncheck.com
9.4
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain template-authoring access in shared workspace
  2. Delivery
    Craft Go template with HTML/JS payload
  3. Exploit
    Deliver poisoned notebook/database to victim
  4. Execution
    Victim opens document in desktop client
  5. Persist
    Payload renders in Node-enabled Electron renderer
  6. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (vulncheck) PRIMARY 9.4 CRITICAL
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
vuln.today AI 9.0 CRITICAL

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
niche self-hosted note-taking app, limited enterprise footprint
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy