Skip to main content

Siyuan EUVDEUVD-2026-17685

| CVE-2026-34585 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-03-31 security-advisories@github.com GHSA-ff66-236v-p4fg
8.6
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious IAL block attributes mixing HTML entities with special characters
  2. Delivery
    Package payload in .sy.zip document
  3. Exploit
    Victim imports .sy.zip via Import workflow
  4. Execution
    Malicious attribute breaks HTML context on note open
  5. Persist
    Event handler executes arbitrary JavaScript
  6. Impact
    XSS payload achieves code execution

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

Victim must import a crafted .sy.zip file into SiYuan desktop client (Electron) versions prior to 3.6.2 via Import workflow, then open the malicious note. Local attacker or remote attacker sending the .sy.zip file via email/download required.

Impact

The CVSS v3.1 score of 8.6 (High) reflects significant real-world risk despite the local attack vector (AV:L). The attack requires no authentication (PR:N) and low complexity (AC:L), though user interaction is required (UI:R) to import the malicious .sy.zip file and open the compromised note. The Changed scope (S:C) indicates the vulnerability breaks trust boundaries, escalating from document rendering context to full system access. EPSS data not provided, but the attack chain from XSS to RCE in Electron applications represents a well-understood exploitation pattern. No CISA KEV listing indicates confirmed active exploitation has not been reported; no public exploit identified at time of analysis. The SSVC framework considerations favor prioritization: technical impact is total (arbitrary code execution with user privileges), exploitation requires social engineering the victim into importing a crafted file (moderate barrier), and the attack could be automated through malicious file distribution. The primary risk mitigation is the requirement for victim interaction and the targeted nature of personal knowledge management systems, which limits broad opportunistic exploitation. However, for organizations using SiYuan or users in targeted attack scenarios (supply chain, watering hole, or social engineering campaigns), this represents critical risk requiring immediate patching. The combination of reachable RCE impact and low technical complexity for crafting the malicious payload elevates this above typical client-side XSS vulnerabilities.

Exploit ScenarioDerived

An attacker creates a malicious SiYuan note containing a crafted block attribute with mixed HTML entities and raw special characters designed to inject an event handler (such as onload or onerror attributes). This note is packaged into a .sy.zip archive and distributed to the target through social engineering, such as sharing it as a purportedly useful knowledge base template in SiYuan user communities, sending it via email as a project reference, or hosting it on a compromised legitimate resource site. The victim, believing the import to be benign reference material, uses SiYuan's Import SiYuan .sy.zip function to add the content to their knowledge base. When the victim opens the compromised note for the first time, the improperly escaped attribute breaks out of its HTML context and executes the injected JavaScript. In the Electron desktop client, this JavaScript uses require statements to load Node.js modules such as child_process, then spawns a reverse shell, downloads and executes a second-stage payload, exfiltrates sensitive documents from the user's file system, or establishes persistence through startup modifications, all with the privileges of the user running SiYuan.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 31, 2026

Stored cross-site scripting (XSS) in SiYuan personal knowledge management system versions prior to 3.6.2 escalates to remote code execution in the Electron desktop client. Attackers craft malicious .sy.zip import files containing HTML entities mixed with raw special characters that bypass server-side attribute escaping, injecting event handlers into imported notes. When victims open the compromised note in the Electron client, injected JavaScript executes with full Node/Electron API access, enabling arbitrary code execution. CVSS 8.6 (High) with local attack vector requiring user interaction; no public exploit identified at time of analysis.

RemediationAI

Upgrade immediately to SiYuan version 3.6.2 or later, released by the vendor to address this vulnerability. The patch implements proper escaping of block attribute values to prevent HTML entity/special character mixing attacks. Users should obtain the patched release from the official GitHub repository at https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2. As an interim risk reduction measure until patching is complete, organizations should instruct users to avoid importing .sy.zip files from untrusted sources and implement email/download filtering to block suspicious SiYuan archive files. However, these workarounds provide limited protection given the legitimate use case for importing knowledge base content, making version upgrade the only reliable remediation. Verify successful patch application by confirming version 3.6.2 or higher in the application's About dialog. Review previously imported documents from external sources for signs of compromise, though detection of successfully injected payloads may require manual code review of .sy files.

Affected VersionsENISA

SiYuan < 3.6.2

Affected Packages

go github.com/siyuan-note/siyuan/kernel fix: 0.0.0-20260329142331-918d1bd9f967
euvd siyuan fix: 3.6.2

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 application that stores notes with block-level attributes (IAL - Inline Attribute Lists) in .sy document format. The vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation) exists in the attribute escaping mechanism that processes IAL values during document import. When an attacker mixes HTML entities with unescaped special characters in block attributes, the parser fails to properly sanitize the combined input, allowing breakout from the intended HTML context. In standard web contexts, this would result in conventional XSS, but SiYuan's Electron architecture significantly amplifies impact. Electron applications bundle Chromium with Node.js runtime, and when nodeIntegration or similar context isolation weaknesses exist, JavaScript executed in the renderer process can invoke require() to access Node.js APIs, file system operations, and child process spawning capabilities. This architectural characteristic transforms what would normally be a data exfiltration or UI manipulation attack into full remote code execution on the victim's workstation.

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

GitHub Advisory PRIMARY 8.6 HIGH
AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
SUSE HIGH

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

2
Patch released
Apr 01, 2026 - 02:30 nvd
Patch available
CVE Published
Mar 31, 2026 - 22:16 nvd
HIGH 8.6

DescriptionGitHub Advisory

SiYuan is a personal knowledge management system. Prior to version 3.6.2, a vulnerability allows crafted block attribute values to bypass server-side attribute escaping when an HTML entity is mixed with raw special characters. An attacker can embed a malicious IAL value inside a .sy document, package it as a .sy.zip, and have the victim import it through the normal Import -> SiYuan .sy.zip workflow. Once the note is opened, the malicious attribute breaks out of its original HTML context and injects an event handler, resulting in stored XSS. In the Electron desktop client, this XSS reaches remote code execution because injected JavaScript runs with access to Node/Electron APIs. This issue has been patched in version 3.6.2.

Executive ViewAI

Why It Matters

SiYuan personal knowledge management system versions before 3.6.2 contain a stored XSS vulnerability that escalates to remote code execution when users import malicious .sy.zip files and open them in the Electron desktop client. Attackers can achieve arbitrary code execution with full system access, compromising any organization using SiYuan for sensitive documentation, research, or knowledge storage. This requires user interaction but provides complete system compromise once triggered.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict .sy.zip file imports to documented internal sources only; (2) disable Electron desktop client in favor of web-only access where operationally feasible; (3) implement file-type filtering and quarantine of .sy.zip imports; (4) isolate SiYuan systems from sensitive production networks pending patch availability; (5) monitor SiYuan process execution and Node.js API calls for anomalous behavior via endpoint detection and response (EDR) tools.

Threat Intelligence Overview

EPSS Score
0.1%
Top 78% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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