Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious Bazaar package README
-
DeliveryEmbed crafted <iframe> payload
-
ExploitVictim views package details
-
ExecutionIframe bypasses Lute sanitizer
-
PersistElectron permissive config executes commands
-
ImpactArbitrary command execution on host
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 | Exploitation requires three concrete conditions: (1) the victim runs the SiYuan Electron desktop client (not a hardened web deployment), whose permissive security configuration permits an embedded iframe to reach OS-level execution; (2) the attacker can place a malicious <iframe> inside a Bazaar marketplace package README; and (3) the victim views that package's details page - passive user interaction (UI:P) is the gating factor, but package installation is explicitly NOT required. What limits exploitation: the dependency on the Electron client configuration, the need for the victim to actively browse to attacker-controlled marketplace content, and the requirement that the target run a version prior to 3.7.0. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N, score 8.7 High) indicates a network-reachable, low-complexity, unauthenticated attack with full impact to the victim system, gated only by passive user interaction (viewing a package). The single meaningful limiting factor is UI:P - a victim must browse to and view the malicious package's details in the Bazaar, and must be running the vulnerable Electron desktop client rather than a hardened/web deployment. No EPSS score, KEV listing, or POC was provided, so there is no evidence of active exploitation; the realistic risk is opportunistic (a poisoned marketplace listing) rather than mass-automated. This is a genuine high-priority issue for desktop users due to the RCE outcome, though the requirement to view attacker-controlled marketplace content keeps it short of zero-interaction wormable severity. |
| Exploit ScenarioDerived | An attacker publishes (or modifies) a SiYuan Bazaar package whose README embeds a crafted <iframe> pointing at content that abuses the Electron client's Node-enabled context. When a victim browsing the marketplace simply opens the package's details to evaluate it, the iframe renders and executes arbitrary OS commands under the victim's account - no install click required. No public POC is identified at this time, but the low complexity (AC:L) makes weaponization straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 24, 2026
Arbitrary command execution in the SiYuan Electron desktop client (versions prior to 3.7.0) allows a remote attacker to run OS commands on a victim's machine when they merely view a malicious Bazaar marketplace package's README. The root cause is that Lute's HTML sanitizer fails to strip <iframe> elements, which combine with the Electron client's permissive security settings (e.g. node integration / relaxed sandboxing) to escalate stored XSS into full code execution; notably no package installation is required, only viewing the package details. No public exploit has been identified at time of analysis, but the CVSS 4.0 score of 8.7 (High) reflects high confidentiality, integrity, and availability impact.
RemediationAI
Vendor-released patch: upgrade SiYuan to version 3.7.0 or later, which fixes Lute's sanitizer to strip <iframe> elements; see the advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-r6v5-4c66-f6pw. Until upgrading, avoid opening or viewing details of untrusted or unfamiliar Bazaar marketplace packages, since merely viewing a malicious README triggers the flaw (no installation needed) - the trade-off is reduced ability to evaluate community packages. Organizations can further reduce exposure by restricting use of the Bazaar marketplace within the Electron client or by isolating the desktop app from sensitive hosts; where feasible, using a sandboxed/web-served deployment rather than the permissive Electron client limits the escalation from XSS to command execution.
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 distributed as an Electron desktop application (CPE cpe:2.3:a:siyuan-note:siyuan). It uses Lute, SiYuan's own Markdown/HTML engine, to render user-supplied content. The flaw is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation / Cross-Site Scripting): Lute's sanitizer allowlist did not remove <iframe> tags, so attacker-controlled HTML embedded in a Bazaar (community marketplace) package README is rendered live. Because Electron's renderer was configured permissively, the embedded iframe is not confined to a harmless web context and can reach Node/OS-level capabilities, turning a web-layer injection into native command execution - a markedly higher impact than browser-sandboxed XSS.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-delivered via marketplace content with no auth (PR:N), but requires the victim to view a malicious package (UI:R); Electron RCE yields full C/I/A impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, Lute's HTML sanitizer does not remove <iframe> elements. Combined with the SiYuan Electron client's permissive security configuration, an attacker can include a malicious <iframe> in a Bazaar package README that executes arbitrary commands on the victim's machine when the package details are viewed. No package installation is required. This vulnerability is fixed in 3.7.0.
Executive ViewAI
SiYuan Electron desktop client (versions prior to 3.7.0) allows remote code execution through the Bazaar marketplace when users view a crafted package listing, with no additional user interaction required. Organizations deploying this software face unauthorized system access and data compromise risks.
Apply vendor patch: SiYuan 3.7.0 or later.
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-39101
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB