Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious .sy.zip with onmouseover attribute
-
DeliveryVictim imports poisoned notebook
-
ExploitEditor attribute update re-broadcasts unfiltered handler
-
ExecutionPointer moves over block triggers handler
-
ImpactNode code execution as the user
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 (1) a victim to import an attacker-supplied .sy.zip whose block IAL carries a handler-named attribute such as onmouseover (the .sy.zip import preserves arbitrary property names); (2) any editor of the workspace - the victim or another connected client - to subsequently update an attribute on that poisoned non-root block, which causes the transactions WebSocket push to re-broadcast the attribute unfiltered (blockAttrsOperation builds the new map via parse.IAL2Map without calling filterHandlerIALAttrs) and the client to apply it via item.setAttribute without the isHandlerIALAttribute guard; and (3) a pointer to pass over the block to fire onmouseover. Full code execution is limited to the official desktop/Electron build (nodeIntegration:true, contextIsolation:false); in the web client the sink is confined to script running against the authenticated kernel API. Limiting factors: required user interaction (import plus an attribute update plus pointer movement), high attack complexity, and dependence on the Electron desktop build for RCE. The document-root attribute path is guarded and not the sink; only a non-root block applies the handler. |
| Impact | The input CVSS 4.0 score is 7.7 (High), and the vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N tells a nuanced story: the vulnerability is network-reachable (AV:N) and needs no attacker authentication (PR:N), but three metrics materially dampen real-world likelihood - high attack complexity (AC:H), a present attack requirement (AT:P), and required victim interaction (UI:P). Exploitation is not a single remote request: the attacker must get a victim to import a malicious .sy.zip, then an editor must update an attribute on the poisoned block, then a pointer must pass over it. The impact side is severe where it lands - VC:H/VI:H/VA:H reflects full code execution with the user's privileges, but only in the official desktop (Electron) build with nodeIntegration:true/contextIsolation:false; in the plain web client the impact is bounded to script execution against the authenticated kernel API. No EPSS score and no KEV status are present in the input, so there is no signal of widespread or active exploitation; the vuln.today decision label is 'this_week' (not act_now/emergency). A full proof-of-concept (setup.sh and poc.py) is embedded in the GHSA advisory and reported as run against the official v3.8.11-beta.1 release, which raises practical credibility above a typical theoretical XSS. A key conflict to resolve: the package metadata lists the fix as v3.8.11, yet the advisory states the unfiltered transactions WebSocket push (kernel/model/blockial.go blockAttrsOperation) and client sink (transaction.ts) remained present through v3.8.11-beta.1/beta.2/beta.3 on a 2026-11-17 source re-read - so whether the GA v3.8.11 fully closes this specific push path should be verified with the vendor rather than assumed. |
| Exploit ScenarioDerived | An attacker distributes a malicious .sy.zip (e.g. as a shared template or notebook) carrying a block whose IAL includes an onmouseover handler. A victim imports it; when any editor of that workspace later updates an attribute on the poisoned block, the transactions WebSocket re-broadcasts the unfiltered handler and the client applies it to the live block element, so a pointer move executes the script. A complete PoC is embedded in the GHSA advisory and reported as run on the official build, where in the Electron desktop app the handler reaches Node and writes a file, i.e. code execution with the user's privileges. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 04, 2026
Stored cross-site scripting in SiYuan before 3.8.11 lets an attacker who gets a user to import a crafted .sy.zip notebook plant a handler-named block attribute (for example onmouseover) that survives until an editor next updates an attribute on the poisoned non-root block; the transactions WebSocket push then re-broadcasts the attribute unfiltered and the client applies it, running script in the editor. In the official Electron desktop build (nodeIntegration:true, contextIsolation:false) the handler reaches Node and yields code execution with the user's privileges, while in the web client the sink is confined to script running against the authenticated kernel API. The reporter's attached proof-of-concept harness was measured against the official v3.8.11-beta.1 Linux and desktop releases, but SiYuan does not appear in CISA KEV and no EPSS score was supplied in the intelligence feed; exploitation requires import, a subsequent attribute update by some editor, and pointer movement over the block.
RemediationAI
Upgrade SiYuan to 3.8.11 or later, the fixed version listed in advisory GHSA-62qw-cq6m-mrh6; do not treat v3.8.11-beta.1, beta.2 or beta.3 as remediation, since the reporter's source re-read on 2026-11-17 found the unfiltered blockAttrsOperation and transaction.ts push path still present in those prereleases, so verify the transactions push filtering on the build you deploy. Because v3.8.10 and earlier are fully vulnerable to the parent advisory and the desktop build runs with nodeIntegration:true and contextIsolation:false, avoid importing .sy.zip notebooks or workspace archives from untrusted sources until the upgrade is in place (side effect: this blocks the primary import workflow for shared notebooks), and keep untrusted users out of shared workspaces, since another connected editor's attribute update is enough to trigger the broadcast. Updating is the complete fix; treat the desktop client as code-execution-exposed because any residual script sink reaches Node with the user's privileges.
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 flaw is CWE-79 stored XSS routed through SiYuan's kramdown block IAL (inline attribute list), the property bag attached to each block in a document. The published parent advisory GHSA-x62v-7955-xx6v added an isHandlerIALAttribute / filterHandlerIALAttrs guard at four boundaries: rejecting new on* names on write (kernel/model/blockial.go:423), filtering the IAL returned by getDocInfo/getDocsInfo (blockial.go:539-551, called from blockinfo.go:70,188), filtering export-preview and export-HTML trees (filterHandlerIALInTree, blockial.go:554, called from export.go:1105,1558), the bundled Lute renderer, and the editor's document-root attribute loop (app/src/protyle/wysiwyg/index.ts:681). A fifth boundary was missed: blockAttrsOperation (kernel/model/blockial.go:614-621) builds the updateAttrs operation's new map with parse.IAL2Map(node.KramdownIAL) without calling filterHandlerIALAttrs and broadcasts it over the transactions WebSocket with util.PushModeBroadcast, and the client applies every key via item.setAttribute (app/src/protyle/wysiwyg/transaction.ts:1222) without the guard. Because the .sy.zip import preserves arbitrary property names, the attribute is stored and invisible to earlier filters; only a non-root block element is a usable sink, since the document-root branch is guarded and drops the carried root attribute.
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:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attacker needs victim import plus an attribute update and pointer-move (AC:H/UI:R), PR:N since crafting the payload needs no auth, and Node RCE in the Electron build yields C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability because the transactions WebSocket push fails to filter handler-named block attributes. Attackers can supply a .sy.zip import carrying an onmouseover attribute that is re-broadcast and applied when any editor updates the block, achieving code execution in the desktop build.
Technical POC Analysis
Stored cross-site scripting (CWE-79) in SiYuan's block-attribute transaction path.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity stored cross-site scripting vulnerability in SiYuan note-taking software (versions before 3.8.11) allows an attacker to execute arbitrary code with user privileges if a victim imports a malicious notebook and an editor later interacts with the poisoned block. This affects organizations using SiYuan, particularly the Electron desktop build, potentially leading to data breaches or system compromise, though exploitation requires specific user actions and no active exploitation has been observed.
Apply vendor patch.
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.
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 has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
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
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-144296
NVD
CVE.org
GitHub
Exploit-DB