Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft asset link with double-quote payload
-
DeliveryDeliver via shared or imported document
-
ExploitVictim opens asset in SiYuan
-
ExecutionPath interpolated into innerHTML, handler injected
-
PersistJavaScript runs in Electron renderer
-
ImpactExecute OS commands on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to open or render a crafted asset link - an asset whose this.path value contains a double quote to escape the src attribute of the generated <img>/asset HTML and inject an event handler - inside the SiYuan Electron desktop client prior to 3.7.1. The limiting factor is active user interaction (UI:A): the attacker must deliver a malicious document/asset (via a shared note, imported workspace, exported template, or synced content) and the victim must open it; there is no unattended remote path. Successful OS command execution further depends on running the Electron desktop app (renderer with OS capabilities) rather than a locked-down/browser-only deployment. No authentication of the attacker is needed (PR:N), but the required content delivery and user action bound realistic exploitation. |
| Impact | The vendor CVSS 4.0 base score is 8.6 with vector AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H - network reachable, low complexity, no privileges, but active user interaction required, with high impact to confidentiality, integrity and availability of the vulnerable system. The high severity is driven by the Electron RCE outcome rather than by ease of unattended exploitation: the UI:A requirement (a user must open the crafted asset/document) meaningfully lowers real-world exploitability compared to a zero-click bug. No EPSS score was provided in the input, and there is no KEV listing and no known POC, so exploitation signals are absent - this is a high-impact but not-yet-actively-exploited issue. The main uncertainty is delivery: risk depends on whether attackers can get a victim to import or open a malicious document/asset, which is plausible given SiYuan's note-sharing use cases but is not a default remote-unauthenticated path. |
| Exploit ScenarioDerived | An attacker crafts a SiYuan document containing an asset link whose path includes a double quote plus an injected event handler, then shares it (e.g., a community template, exported note, or shared workspace). When the victim opens the document in the SiYuan desktop app, Asset.render writes the malformed path into innerHTML, the injected handler fires, and JavaScript runs in the Electron renderer to execute OS commands on the victim's machine. No public POC is currently identified, but the low attack complexity means a working exploit is straightforward to build. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 09, 2026
Cross-site scripting escalating to remote code execution in SiYuan (open-source personal knowledge management) before 3.7.1 lets an attacker embed a crafted asset link whose path contains a double quote, breaking out of an image src attribute in Asset.render to inject an event handler. Because SiYuan runs in an Electron renderer with OS-level capabilities, the injected JavaScript can execute arbitrary operating-system commands on the victim's machine once the malicious asset is opened. No public exploit identified at time of analysis, and it is not listed in CISA KEV; user interaction is required to trigger the flaw.
RemediationAI
Vendor-released patch: upgrade to SiYuan 3.7.1 (or 3.7.1-alpha.2), which sanitizes the asset path before it is written to innerHTML; the fix is commit efbe3a557720034782643e55c9e0282530cb6bbb (https://github.com/siyuan-note/siyuan/commit/efbe3a557720034782643e55c9e0282530cb6bbb) and is described in advisory GHSA-w3gq-5j72-36vc. Until upgrading, avoid opening or importing documents and asset links from untrusted or shared sources, since the malicious payload travels inside asset paths; treat imported .sy documents and shared workspaces as untrusted input. As a defense-in-depth measure, run SiYuan under a restricted OS account to limit the blast radius of renderer-to-OS command execution, accepting the trade-off that this does not prevent data theft from the workspace itself.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
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 desktop knowledge-management application; the vulnerable code is Asset.render in app/src/asset/index.ts, which builds an HTML string by interpolating the unsanitized this.path property directly into markup that is then assigned to innerHTML. This maps to CWE-80 (Improper Neutralization of Script-Related HTML Tags), a stored/DOM XSS class where attacker-controlled data is written into the DOM without escaping quotes or angle brackets. In a browser this yields ordinary XSS, but in an Electron renderer with Node/OS integration the executing JavaScript can reach OS command execution, turning a markup-injection bug into full RCE. The single affected component per CPE is cpe:2.3:a:siyuan-note:siyuan (all versions prior to the fix).
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:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Remotely deliverable content but requires the victim to open the crafted asset (UI:R); no attacker privileges (PR:N); Electron renderer RCE yields high C/I/A; scope unchanged as impact stays within the app's OS context.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, Asset.render in app/src/asset/index.ts interpolates the unsanitized this.path value into HTML assigned to innerHTML, allowing a crafted asset link containing a double quote to break out of the src attribute, inject an event handler, and execute JavaScript that can run OS commands in the Electron renderer. This issue is fixed in versions 3.7.1-alpha.2 and 3.7.1.
Executive ViewAI
SiYuan knowledge management tool (versions before 3.7.1) enables remote code execution on user machines through a cross-site scripting flaw in asset handling. An attacker can execute arbitrary commands with the privileges of the user running SiYuan, risking theft or destruction of sensitive organizational knowledge stored in the application and potential use of compromised machines for further network penetration.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict SiYuan users to locally-sourced assets only and prohibit opening asset links from external parties; (2) disable or uninstall SiYuan on systems handling classified or high-value data; (3) implement user awareness training emphasizing asset source verification; (4) enable endpoint detection monitoring for suspicious child processes spawned 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.
Affected Products (CPE)CVE.org
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
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB