Skip to main content

Siyuan EUVDEUVD-2026-19973

| CVE-2026-39846 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-04-07 GitHub_M GHSA-phhp-9rm9-6gr2
9.0
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Gain authenticated workspace access
  2. Delivery
    Import malicious note with XSS payload
  3. Exploit
    Wait for victim workspace sync
  4. Install
    Victim opens crafted note
  5. C2
    XSS triggers in Electron renderer
  6. Execute
    Invoke Node.js APIs via require()
  7. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Apr 07, 2026 - 22:16 CVSS 9.0

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

SiYuan < 3.6.4

Affected Packages

go github.com/siyuan-note/siyuan/kernel fix: 0.0.0-20260407035653-2f416e5253f1
euvd siyuan fix: 3.6.4

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

NVD PRIMARY 9.0 CRITICAL
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
SUSE CRITICAL

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 04:58 vuln.today
v2 - CVSS changed
Patch released
Apr 08, 2026 - 20:30 nvd
Patch available
CVE Published
Apr 07, 2026 - 21:34 nvd
CRITICAL 9.0

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 66% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

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.1%
Patch available Yes
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +45
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.

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

Vendor 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

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