Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious .sy.zip with payload in checkbox column name
-
DeliveryDeliver via file share or published document
-
ExploitVictim opens/imports in desktop Electron client
-
ExecutionUnescaped name renders into Protyle DOM
-
PersistScript executes via nodeIntegration as Node.js
-
ImpactArbitrary host OS command 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 | Requires the SiYuan desktop Electron client (which ships with nodeIntegration:true, contextIsolation:false, @electron/remote enabled, and CSP headers stripped in local mode) to open or import an attacker-supplied .sy.zip document or notebook - or to view a shared workspace/published document - that contains an AttributeView (database) block using the Gallery or Kanban layout with a checkbox column and the default displayFieldName:false setting; the attacker controls the checkbox column name (keyValues[].key.name) which is rendered unescaped. Limiting factors: passive user interaction is required (the victim must open/import the malicious document, reflected as UI:P), and the browser/web-served configuration with web security enabled is not subject to the Node.js/OS escalation since that depends on the desktop Electron process settings. No authentication is required to craft or deliver the file (PR:N). |
| Impact | Multiple signals align toward high priority. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H with subsequent-system impact SC:H/SI:H/SA:H, score 9.4) and the vuln.today 'act_now' decision label both indicate a severe, low-complexity flaw whose impact crosses from the renderer into the host OS. The mechanism is confirmed by the vendor GHSA advisory: stored XSS in the unescaped checkbox column name of Gallery/Kanban AttributeView renderers that escalates to arbitrary Node.js/OS command execution because SiYuan's desktop Electron window runs with nodeIntegration:true, contextIsolation:false, @electron/remote enabled, and CSP stripped in local mode. The one real limiter is UI:P - a victim must open or import the attacker's crafted .sy.zip document/notebook (or view a shared/published one); exploitation is not fully drive-by, which is why the vector uses UI:P rather than UI:N. No EPSS score, no CISA KEV listing, and no verified public exploit code are present in the input, so active-exploitation and widespread-scanning signals are absent and cannot be asserted. Net: this is a genuine high-severity, act-now issue driven by confirmed severe technical impact and a trivial trigger, but exploitation depends on social delivery of a malicious file to desktop users rather than on remote unauthenticated reachability of a service. |
| Exploit ScenarioDerived | An attacker crafts a .sy.zip SiYuan document containing a Gallery or Kanban database view whose checkbox column name holds an HTML/script payload, then shares it (import file, shared workspace, or published document). When a victim opens or imports it in the SiYuan desktop Electron client, the unescaped column name renders into the live DOM and immediately executes JavaScript that, via nodeIntegration, runs arbitrary Node.js and host OS commands with no click or hover inside the document. No verified public exploit code is identified in the input, though the GHSA advisory documents the full code path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Stored cross-site scripting in SiYuan 3.3.0 through 3.8.9 lets unauthenticated remote attackers hide HTML inside an AttributeView checkbox column name, which the Gallery and Kanban renderers write into the page without escaping; simply opening or importing a crafted .sy.zip document (or viewing a shared/published document) renders the payload. Because the SiYuan desktop client ships Electron with nodeIntegration enabled, contextIsolation disabled and CSP headers stripped in local mode, the injected JavaScript runs with full Node.js and host OS privileges, turning a CWE-79 defect into CWE-94 arbitrary command execution. Exploitation is not automatic at the network level: the victim must open or import the malicious document, which is passive user interaction rather than a click inside the document, and no public exploit code has been identified at time of analysis. The vuln.today decision label is act_now, so treat patching as high priority.
RemediationAI
Upgrade SiYuan to v3.8.10, the version in which the checkbox column name is no longer rendered unescaped in the Gallery and Kanban AttributeView renderers; the fix was delivered upstream and the vendor advisory GHSA-g275-mf26-qx9r (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-g275-mf26-qx9r) documents the affected range 3.3.0 through 3.8.9. Until the upgrade is deployed, reduce exposure by not opening or importing .sy.zip documents or notebooks, and not viewing shared workspace or published documents, from untrusted sources; the advisory's trigger path shows that import alone is enough, with no further click inside the document required. Note that this restriction is a delivery-path control with a real usability cost for collaboration workflows and does not fix the underlying escaping defect, and note that the arbitrary Node.js and host OS command execution applies to the desktop Electron client, whereas browser-served deployments with web security enabled are not subject to that escalation.
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
The root cause is CWE-79 in SiYuan's AttributeView rendering pipeline, which escalates to CWE-94 code injection because of the Electron runtime. On import, importSY0 in kernel/model/import.go copies storage/av/<avID>.json into data/storage/av/ after ID replacement but never HTML-escapes keyValues[].key.name; POST /api/av/renderAttributeView (kernel/api/av.go, with the gallery and kanban SQL builders in kernel/sql/av_gallery.go and av_kanban.go) then returns that column name verbatim as fields[].name, and displayFieldName defaults to false via NewCardSettings() in kernel/av/layout_card.go. On the frontend, getRowHTML in app/src/protyle/render/av/row.ts assigns the raw field name to cell.value.checkbox.content in both the Gallery and Kanban branches whenever the checkbox cell is rendered with displayFieldName false, and renderCell in app/src/protyle/render/av/cell.ts concatenates cellValue.checkbox.content straight into the returned HTML string without escapeHtmlTextAndAttr or DOMPurify; the surrounding name and tip markup in row.ts is escaped, which makes the renderCell sink easy to miss during review. The resulting string reaches the live Protyle DOM through outerHTML assignment in replaceAVContainer (app/src/protyle/render/av/container.ts) and innerHTML assignments in gallery/render.ts, kanban/render.ts and gallery/item.ts, where insertGalleryItemAnimation additionally reads the decoded aria-label back into cellValue.checkbox.content. The escalation depends entirely on the desktop Electron configuration in app/electron/main.js: nodeIntegration true, contextIsolation false, @electron/remote enabled via remote.enable(currentWindow.webContents), and content-security-policy headers deleted in local mode, so injected markup executes Node.js and OS commands on render. The browser/web-served configuration with web security enabled is not subject to the Node.js/OS escalation, and the advisory covers this distinction.
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:H/SI:H/SA:H
Attacker-controlled file delivered over network (AV:N) with no privileges (PR:N) but requires the victim to open it (UI:R); renderer-to-host-OS escalation is a scope change (S:C) with full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan from 3.3.0 before 3.8.10 contains a stored cross-site scripting vulnerability that allows attackers to inject HTML via unescaped checkbox column names in Gallery and Kanban AttributeView renderers. Attackers can share a crafted .sy.zip document whose rendering in the Electron desktop client with nodeIntegration enabled executes Node.js and host OS commands.
Articles & Coverage 1
Technical POC Analysis
Stored XSS, CWE-79.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical stored cross-site scripting vulnerability in SiYuan versions 3.3.0 through 3.8.9 allows unauthenticated attackers to embed malicious code in shared or imported documents, which can lead to full system compromise due to Electron's insecure configuration. This puts all users of affected SiYuan clients at risk, especially those who open documents from external sources. Leadership should prioritize this because successful exploitation can result in arbitrary command execution on user machines, potentially leading to data breaches or ransomware.
No vendor-released patch identified at time of analysis. Interim mitigations include: restrict import of .sy.zip documents to trusted sources only; disable sharing/publishing features if possible; enforce least privilege on user workstations; monitor for suspicious child processes spawned by SiYuan; apply application allowlisting to block unauthorized executables; and consider network segmentation to limit lateral movement.
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-128754
GHSA-pmjj-gw4x-8pj6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB