Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain authenticated workspace access
-
DeliveryImport malicious note with XSS payload
-
ExploitWait for victim workspace sync
-
InstallVictim opens crafted note
-
C2XSS triggers in Electron renderer
-
ExecuteInvoke Node.js APIs via require()
-
ImpactExecute system commands as victim user
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 | Attacker requires authenticated access (PR:L) to a SiYuan workspace that the victim also syncs-specifically, ability to create or import notes into shared workspace via SiYuan's collaboration/sync features. Victim must perform workspace synchronization action (pulling updates from shared workspace), then actively open the attacker-controlled note (UI:R required). Exploitation occurs only in SiYuan desktop client installations using Electron framework with nodeIntegration enabled and contextIsolation disabled (default configuration in affected versions prior to 3.6.4). Web-based or differently configured clients may not be vulnerable. Attack succeeds from network position (AV:N) because workspace sync operates over network protocols, but the multi-step prerequisite chain (shared workspace membership, victim sync timing, victim opening specific note) significantly constrains opportunistic exploitation. Single-user installations without workspace sync enabled are not vulnerable to the propagation vector, though local XSS-to-RCE still possible if attacker can directly modify local notes via other means. |
| Impact | Real-world risk assessment reveals conflicting signals requiring careful interpretation. CVSS 9.0 with scope change (S:C) correctly reflects the severity of breaking out of the application security boundary to achieve system-level code execution. However, practical exploitation requires multiple conditions: attacker must have authenticated access (PR:L) to create/import notes into a shared workspace, victim must sync their workspace (network-dependent action), and victim must actively open the malicious note (UI:R). EPSS score of 0.14% (34th percentile) indicates low current exploitation probability, suggesting limited attacker awareness or tooling despite the critical impact. No CISA KEV listing confirms no widespread active exploitation. Attack complexity is low (AC:L) once prerequisites are met-the XSS payload itself is straightforward. The SSVC framework assessment: exploitation=none (no public POC identified), automatable=no (requires social engineering to ensure victim opens note), technical impact=total (arbitrary code execution). Primary risk is in enterprise/team deployments where workspace sync creates trust relationships between users. Single-user installations face lower risk unless attacker can socially engineer note import. This is a genuine critical-severity issue for multi-user deployments, not a theoretical high-CVSS curiosity, but the low EPSS suggests attackers have not yet weaponized it at scale. |
| Exploit ScenarioDerived | Attacker with legitimate credentials to a shared SiYuan workspace crafts a note containing malicious JavaScript in a table caption field (e.g., <caption><img src=x onerror='require("child_process").exec("calc.exe")'></caption>). Attacker imports this note into the shared workspace. When the victim syncs their SiYuan desktop client, the malicious note propagates to their local database. Upon opening the note, the table renders with the caption content unsafely inserted into HTML. The XSS payload executes in Electron's renderer context with Node.js API access enabled, directly invoking child_process to execute arbitrary system commands (credential theft, ransomware deployment, persistence mechanisms) with the victim's OS-level privileges. No public POC identified at time of analysis, but exploitation logic is straightforward for attackers familiar with Electron security weaknesses. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 16, 2026
Remote code execution in SiYuan desktop client (Electron-based) versions prior to 3.6.4 allows authenticated attackers to execute arbitrary code on victim systems via malicious notes propagated through workspace sync. Stored XSS in table caption fields escalates to RCE due to nodeIntegration enabled and contextIsolation disabled in Electron renderer. CVSS 9.0 (Critical) with scope change indicates escape from browser context. No active exploitation confirmed (not in CISA KEV). EPSS score 0.14% suggests low current exploitation probability. Vendor-released patch: version 3.6.4.
Earlier versions of this analysis (1)
Remote code execution in SiYuan Electron desktop client (prior to version 3.6.4) allows authenticated attackers to execute arbitrary code on victim systems through maliciously crafted notes synced across workspaces. The vulnerability chains a stored XSS flaw in table caption rendering with insecure Electron configuration (nodeIntegration enabled, contextIsolation disabled), elevating DOM-based script injection to full Node.js API access. No public exploit identified at time of analysis, though the attack vector is well-documented in the GitHub security advisory. CVSS 9.0 reflects the scope change and high impact across confidentiality, integrity, and availability.
RemediationAI
Upgrade immediately to SiYuan version 3.6.4 or later, which implements proper HTML escaping for table caption content and likely addresses the insecure Electron configuration (nodeIntegration/contextIsolation settings). Download from official GitHub releases at https://github.com/siyuan-note/siyuan/releases. For environments where immediate upgrade is not feasible, implement compensating controls: disable workspace sync functionality to prevent propagation of malicious notes (eliminates attack vector but breaks collaboration features-acceptable only for single-user deployments), restrict note import capabilities to trusted sources only through access controls, and deploy endpoint detection monitoring for suspicious child process creation from Electron renderer processes (siyuan.exe spawning cmd.exe, powershell.exe, or bash-high false-positive risk in legitimate automation scenarios). Network-level controls are ineffective since the malicious content arrives via legitimate sync protocol. Administrative note review before sync is impractical at scale. No workaround fully mitigates risk-upgrade to 3.6.4 is the only complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SiYuan is an Electron-based personal knowledge management system with multi-device synchronization. The vulnerability affects the desktop client (cpe:2.3:a:siyuan-note:siyuan) where table caption content undergoes unsafe HTML rendering. The root cause is CWE-79 (Cross-Site Scripting) combined with insecure Electron configuration. In Electron applications, nodeIntegration:true grants renderer processes access to Node.js APIs (filesystem, child_process, native modules), while contextIsolation:false removes the security boundary between preload scripts and web content. These deprecated settings, intended for legacy compatibility, allow JavaScript XSS payloads to directly invoke require() and execute system commands. The sync mechanism propagates malicious notes between users' workspaces, turning a local XSS into a wormable attack vector. This represents a common Electron security anti-pattern where web content security assumptions (XSS = browser sandbox escape only) fail catastrophically when combined with Node.js API access.
Know when Siyuan gets its next vulnerability
- 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
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
SiYuan is a personal knowledge management system. Prior to 3.6.4, a malicious note synced to another user can trigger remote code execution in the SiYuan Electron desktop client. The root cause is that table caption content is stored without safe escaping and later unescaped into rendered HTML, creating a stored XSS sink. Because the desktop renderer runs with nodeIntegration enabled and contextIsolation disabled, attacker-controlled JavaScript executes with access to Node.js APIs. In practice, an attacker can import a crafted note into a synced workspace, wait for the victim to sync, and achieve code execution when the victim opens the note. This vulnerability is fixed in 3.6.4.
Executive ViewAI
SiYuan desktop client versions before 3.6.4 contain a critical remote code execution vulnerability affecting authenticated users whose workspace sync receives malicious notes. An attacker with workspace access can inject stored XSS payloads in table captions that execute with full system privileges due to disabled Electron security controls, enabling complete system compromise without additional user interaction beyond opening a synchronized note.
Vendor-released patch: version 3.6.4. Interim mitigation pending patching: disable workspace sync features and restrict SiYuan usage to local, unshared notebooks only; disable or air-gap systems with SiYuan until patched.
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.
SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-19973
GHSA-phhp-9rm9-6gr2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB