Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft entity-encoded malicious table caption
-
DeliveryDeliver via import or synced notebook
-
ExploitVictim previews note in Electron client
-
Executiononerror fires in nodeIntegration context
-
ImpactExecute OS commands via require('child_process')
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, 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 attacker to get a malicious table caption into the victim's workspace through an import or sync action (e.g., a shared or synced notebook, or a crafted .sy file), and requires the victim to then preview/render that document. Full remote code execution additionally requires the victim to be using the SiYuan Electron desktop client, where the local-kernel preview response is assigned to previewElement.innerHTML with no DOMPurify inside a window running nodeIntegration:true, contextIsolation:false, webSecurity:false - granting the injected onerror handler require() access. Limiting factors: this is not direct unsolicited network exploitation - the attacker must deliver content via import/sync, the victim must preview it (UI interaction), and the RCE sink is specific to the Electron desktop configuration on affected versions (<= v3.8.9); non-Electron rendering paths are constrained to stored XSS. Affected package: siyuan-note/siyuan, fixed in v3.8.10. |
| Impact | Multiple signals converge on genuine high priority. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC/VI/VA:H, SC/SI/SA:H, score 9.4) indicates a network-reachable, low-complexity, unauthenticated flaw that requires only passive user interaction and yields full impact plus a subsequent-system (scope) change - consistent with stored XSS escalating to OS-level RCE. The vuln.today decision label is act_now and the issue was reported by VulnCheck, reinforcing urgency. A detailed, self-contained reproduction script is published in the vendor GHSA advisory, so working exploit knowledge is public. Tempering factors: there is NO CISA KEV listing (no confirmed active exploitation) and NO EPSS score in the input, so widespread opportunistic exploitation is not demonstrated - the realistic threat is targeted delivery of malicious content into a victim's workspace. Critically, the RCE outcome is confirmed only for the Electron desktop client (nodeIntegration:true, contextIsolation:false, webSecurity:false, no DOMPurify on the local-kernel preview path); non-Electron/browser usage is limited to stored XSS. Overall this is a real priority driven by RCE impact and a public PoC, not a high-CVSS-but-low-risk issue, but its spread depends on the attacker getting content into the target via import or sync rather than direct unsolicited network exploitation. |
| Exploit ScenarioDerived | An attacker crafts a document whose table block carries an entity-encoded caption such as '<img src=x onerror=...>' and delivers it into the victim's workspace via an imported file or a synced/shared notebook. When the victim previews that note in SiYuan's Electron desktop client, the kernel entity-unescapes the caption and emits it as live HTML, which the frontend assigns directly to innerHTML with no DOMPurify, firing the onerror handler inside a nodeIntegration window and executing arbitrary OS commands through require('child_process'). A full step-by-step reproduction script (including the command-execution proof) is published in the GHSA advisory. |
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 Note through 3.8.9 escalates to remote code execution when a crafted table caption is imported or synced into a workspace and then previewed in the Electron desktop client, which runs with nodeIntegration enabled and renders the local-kernel preview response straight into innerHTML without DOMPurify. Delivery is not direct network exploitation: a remote, unauthenticated attacker (PR:N per the assessed CVSS vector) must get a malicious .sy document or synced notebook into the victim's workspace, and the victim must open the preview (UI:R), after which the injected onerror handler gains require() access and can run OS commands - non-Electron rendering paths are limited to stored XSS. A detailed, verifiable proof-of-concept is published in the project's GHSA advisory; active exploitation in the wild is not confirmed, and the vendor addresses the flaw in SiYuan v3.8.10.
RemediationAI
Upgrade SiYuan to v3.8.10 or later - the advisory lists v3.8.10 as the fixed release for siyuan-note/siyuan and confirms all versions through v3.8.9 are vulnerable; details are at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v92g-4rrc-c6wv. Until the upgrade is applied, the exposure path described in the assessment is content ingestion plus preview, so the practical interim control is to avoid importing .sy packages or syncing notebooks from untrusted or shared sources, and to avoid previewing documents of unknown provenance, which removes the trigger but leaves the vulnerable parser and renderer in place with no vendor-supported mitigation. Because the RCE sink is specific to the Electron desktop client (nodeIntegration: true, contextIsolation: false) while browser and non-Electron rendering paths are constrained to stored XSS, restricting work to those paths during the upgrade window limits the impact to script execution in the note context rather than host command execution; that is a scope reduction, not a fix, and the vendor's corrected build remains the only complete remedy.
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 stores block attributes in kramdown IAL properties, and a table block's caption attribute is persisted there verbatim during import or sync rather than being HTML-transformed. At render time the caption IAL value is entity-unescaped and emitted into the preview document, so an entity-encoded value such as <img src=x onerror=...> is decoded into a live DOM node - a CWE-94 code-injection class flaw in which markup is treated as trusted content. The advisory's PoC shows the /api/export/preview kernel endpoint returning an active, unsanitized <caption> element with a working onerror handler. In the desktop build the front end assigns that response directly to previewElement.innerHTML on the local-kernel path (app/src/protyle/preview/index.ts) with no DOMPurify, inside an Electron window configured nodeIntegration: true, contextIsolation: false, webSecurity: false (app/electron/main.js, v3.8.9), so the injected script reaches require() and child_process. The advisory notes this is a follow-up variant of CVE-2026-39846, and every release up to and including v3.8.9 was verified vulnerable.
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
Content delivered via import/sync is network-reachable and unauthenticated (AV:N/PR:N) but needs victim preview (UI:R); the Electron nodeIntegration escape to OS code execution gives S:C and full C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before 3.8.10 persists a table block's caption attribute into IAL properties without HTML sanitization, causing stored cross-site scripting upon import or sync. Attackers can inject an entity-encoded caption with an onerror handler that executes in the Electron client's nodeIntegration context to achieve remote code execution.
Technical POC Analysis
Bug class: CWE-94, Improper Control of Generation of Code, manifesting as stored XSS that becomes client-side RCE.
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 security flaw in SiYuan Note (versions through 3.8.9) allows malicious documents to execute arbitrary code on a victim's computer when previewed, potentially leading to full system compromise. This puts users who import or sync shared notebooks at risk, and while no active exploitation has been observed, the availability of a working exploit and the application's use in sensitive environments mean leadership should prioritize remediation to protect data and maintain trust.
Apply vendor patch: upgrade to SiYuan v3.8.10.
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.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
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
EUVD-2026-128756
GHSA-rj95-hhvp-q9jp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB