Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious IAL block attributes mixing HTML entities with special characters
-
DeliveryPackage payload in .sy.zip document
-
ExploitVictim imports .sy.zip via Import workflow
-
ExecutionMalicious attribute breaks HTML context on note open
-
PersistEvent handler executes arbitrary JavaScript
-
ImpactXSS 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub 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
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.
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
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: 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 |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-17685
GHSA-ff66-236v-p4fg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB