Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPublish malicious package to Bazaar
-
DeliveryUser browses marketplace
-
ExploitRender unescaped metadata
-
InstallExecute JavaScript in Electron context
-
C2Call Node.js child_process APIs
-
ExecuteExecute arbitrary system commands
-
ImpactInstall persistence mechanism
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 | User must actively open the Bazaar marketplace interface within the SiYuan desktop application and view a package listing containing the malicious metadata payload. The vulnerability affects only the desktop Electron application, not web-hosted or mobile instances, because exploitation requires the nodeIntegration: true and contextIsolation: false Electron configuration present in desktop builds. Attack complexity is high because the attacker must either compromise the official Bazaar package feed infrastructure, convince administrators to add a malicious third-party marketplace source, or register a seemingly legitimate package on the official marketplace that passes initial review. Default SiYuan installations are exploitable if users browse the marketplace, but exploitation is limited by the need for victim interaction with the specific malicious package entry rather than passive background exploitation. |
| Impact | CVSS 8.3 (High) accurately reflects the severity given the code execution outcome, though the vector string reveals important risk-limiting factors. Attack vector is Network (AV:N) but attack complexity is High (AC:H), requiring the attacker to craft a malicious package and publish it to the Bazaar marketplace or manipulate the feed URL. User interaction is Required (UI:R) - victims must actively browse the marketplace and view the malicious package entry. Scope is Changed (S:C), meaning the payload escapes the application context to the underlying OS. No EPSS data provided, no CISA KEV listing, and no public proof-of-concept identified, suggesting this remains a theoretical risk rather than actively exploited threat. The GitHub Security Advisory (GHSA-x6wf-w2rg-2gw9) confirms vendor acknowledgment. Real-world exploitation requires either compromising the official Bazaar feed infrastructure or social engineering users to add malicious third-party marketplace sources. For organizations running SiYuan 2.1.12-3.6.x, this is a critical upgrade priority despite the attack complexity, as successful exploitation yields full host compromise equivalent to running arbitrary executables with the user's privileges. |
| Exploit ScenarioDerived | An attacker publishes a malicious package to the SiYuan Bazaar marketplace (or compromises an existing package) with specially crafted author metadata containing JavaScript payload. When a SiYuan user browses the marketplace to discover plugins or themes, the application renders the malicious metadata without HTML escaping, executing the payload in the Electron context. Because nodeIntegration is enabled, the payload calls require('child_process').exec() to download and execute a second-stage implant, establishing persistent access to the victim's workstation with full user privileges. No public proof-of-concept code has been identified, but the technical details in the security advisory provide sufficient information for capable attackers to develop working exploits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 14, 2026
Stored cross-site scripting in SiYuan's Bazaar marketplace (versions 2.1.12 through 3.6.x) enables arbitrary code execution on the host system. The vulnerability stems from unescaped package author metadata rendering, which when exploited through a malicious marketplace package, allows attackers to leverage SiYuan's insecure Electron configuration (nodeIntegration enabled, contextIsolation disabled) to execute Node.js APIs and OS-level commands. No public exploit or active exploitation confirmed at time of analysis. CVSS 8.3 with high attack complexity and required user interaction suggests real-world exploitation depends on convincing users to view crafted marketplace entries.
RemediationAI
Upgrade to SiYuan 3.7.0 or later, which implements proper HTML escaping for Bazaar marketplace metadata rendering. Download the patched release from the official SiYuan GitHub repository releases page. If immediate upgrade is not feasible, disable or restrict access to the Bazaar marketplace feature within SiYuan settings to prevent exposure to malicious package metadata. Review and remove any custom or third-party Bazaar feed URLs configured in the application, retaining only the official siyuan-note marketplace source. Organizations should audit systems for indicators of compromise by reviewing SiYuan application logs and system process execution history for unexpected Node.js child process spawns. Note that disabling Bazaar access impacts the user's ability to install community plugins and themes, creating a usability trade-off until upgrade is completed. Full remediation details at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x6wf-w2rg-2gw9.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in 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 open-source personal knowledge management system built on Electron framework. The vulnerability exists in the Bazaar marketplace component, which fetches package metadata from a public feed and renders author information into the application's HTML interface. The affected product (cpe:2.3:a:siyuan-note:siyuan) runs as an Electron desktop application configured with nodeIntegration: true and contextIsolation: false - security settings that expose Node.js APIs to web content. CWE-79 (Cross-site Scripting) in this context escalates beyond typical XSS impact because the Electron security model is intentionally weakened, allowing JavaScript payloads to break out of the browser sandbox and execute system commands via require() calls to Node.js modules like child_process. This architectural decision transforms what would normally be a data exfiltration risk into a complete system compromise vector.
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:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
SiYuan is an open-source personal knowledge management system. From 2.1.12 to before 3.7.0. SiYuan's Bazaar marketplace renders package author metadata from the public bazaar stage feed into HTML without escaping. In the desktop app this becomes stored XSS, and because SiYuan's Electron windows are created with nodeIntegration: true and contextIsolation: false, a successful payload can call Node.js APIs and execute code on the host. This vulnerability is fixed in 3.7.0.
Executive ViewAI
SiYuan Bazaar marketplace contains a stored cross-site scripting vulnerability (CVE-2026-44586, CVSS 8.3) in versions 2.1.12 through 3.6.x that could allow attackers to execute arbitrary code on affected systems through malicious package submissions. This poses a direct threat to any organization or individual using SiYuan for note-taking and knowledge management, as successful exploitation requires only user viewing of a crafted marketplace entry. Immediate action is required to protect systems from potential compromise, data theft, or operational disruption.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict user access to Bazaar marketplace functionality; prohibit installation of packages from untrusted or newly created marketplace authors; implement endpoint detection and response (EDR) monitoring on systems running SiYuan to detect anomalous Node.js or OS command execution; run SiYuan in restricted user accounts without elevated privileges; use application whitelisting to prevent unauthorized process spawning from SiYuan.
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.
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
EUVD-2026-30354
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB