Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft notebook with malicious heading style
-
DeliveryDeliver notebook to victim (share/import)
-
ExploitVictim opens notebook, dock renders unescaped HTML
-
ExecutionScript executes in Electron renderer
-
ImpactAchieve code execution with full system access
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 the attacker to inject a crafted heading style attribute either by supplying a malicious SiYuan notebook that the victim imports/opens, or by calling SiYuan's administrative endpoints (the latter implying authenticated access). The malicious value only fires when the outline dock or bookmark dock renders the unescaped heading HTML, so a victim must view content that surfaces the affected heading (UI:A / user interaction is required - no purely passive remote exploitation). The severe outcome (host compromise) is conditioned on SiYuan running as an Electron desktop app whose renderer has full system/Node access; a hardened or sandboxed renderer configuration would reduce impact to script execution only. Affected: SiYuan through 3.8.4. |
| Impact | This is a genuine high-priority issue whose real-world impact exceeds a typical stored-XSS finding because the payload executes in SiYuan's Electron renderer 'with full system access' - meaning the flaw is effectively a client-side XSS-to-RCE, not just script execution in a sandboxed browser context. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:A/VC:H/VI:H/VA:H, score 8.6) is consistent with a network-deliverable, low-complexity attack that requires victim interaction (UI:A) - the victim must open the malicious notebook or render the affected outline/bookmark dock. No EPSS score, CISA KEV listing, or public POC is provided in the input, so per precision rules this is 'no public exploit identified at time of analysis'; the absence of these signals suggests exploitation is not yet widespread. One tension to flag: the description offers TWO injection paths - 'crafted notebooks' (which a victim could import/open without the attacker needing an account, supporting PR:N) and 'administrative endpoints' (which would require authenticated access). The vendor scored PR:N, which is defensible via the crafted-notebook path, but defenders should note the admin-endpoint path is authenticated. Overall: real priority for SiYuan users because the impact is host compromise, but exploitation depends on user interaction and social delivery of a malicious notebook rather than remote drive-by. |
| Exploit ScenarioDerived | An attacker crafts a SiYuan notebook containing a heading whose style attribute embeds a malicious value; when a victim imports or opens that notebook, the outline or bookmark dock renders the attribute unescaped, executing attacker-controlled script in the Electron renderer. Because the renderer runs with full system access, the payload can pivot from stored XSS to arbitrary code execution on the victim's machine. No public exploit code is identified at time of analysis, but the flaw is reported by VulnCheck with specific vulnerable source lines cited. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
Stored cross-site scripting in SiYuan through 3.8.4 lets an attacker inject malicious style values into heading attributes that the outline and bookmark docks render without escaping, so the payload executes as JavaScript inside SiYuan's Electron renderer - which runs with full system access, making this effectively an XSS-to-code-execution condition on the host rather than ordinary script execution in a sandboxed browser context. Delivery is either a crafted notebook that the victim imports or opens, or abuse of SiYuan's administrative endpoints (the latter implying authenticated access); the payload only fires when the victim surfaces the affected heading in the outline or bookmark dock, so user interaction is required (UI:A) and exploitation is not purely passive. No public exploit identified at time of analysis; the CVE carries a CVSS 4.0 base score of 8.6 and was independently assessed as CVSS 3.1 9.6 (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H), reflecting the notebook-import path being unauthenticated while the administrative-endpoint path requires credentials.
RemediationAI
No vendor-released patch identified at time of analysis, so remediation must start with tracking the upstream GitHub advisory GHSA-928g-4hfq-qwvx (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-928g-4hfq-qwvx) and the SiYuan release channel for a fixed build above 3.8.4 before upgrading. Until then, the highest-value compensating controls are: refuse to import, sync, or open SiYuan notebooks from untrusted or external sources, since the unauthenticated vector is a malicious notebook and this single measure removes the primary attack path (trade-off: no collaboration or shared-notebook workflows without prior sanitization); protect and restrict SiYuan's administrative/kernel HTTP endpoints with strong authentication and bind them to localhost rather than exposing them on a network, because the second injection path requires calling those endpoints (trade-off: remote or multi-user access to the kernel API must be dropped or routed through an authenticated proxy); run the desktop client under a low-privilege OS account, in a container or VM, and disable Electron Node integration / enable renderer sandboxing and context isolation where the build allows it, which caps the blast radius of the full-system-access renderer (trade-off: some local file and plugin features may break); and treat any already-imported unfamiliar notebook as untrusted by disabling or avoiding the outline and bookmark docks that trigger the unescaped render, since the payload only executes when that heading HTML is displayed (trade-off: loss of navigation convenience for remaining unpatched and unverified content). Monitor imported content, block untrusted .sy packages at the perimeter if feasible, and re-audit stored headings once an official fix ships.
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 a local-first personal knowledge management and note-taking application whose kernel is written in Go and whose user interface runs in Electron with a TypeScript/Vue frontend; the desktop renderer is not a hardened browser sandbox and has access to the underlying system, which is why a content-injection flaw escalates beyond typical web XSS. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation, i.e. cross-site scripting): heading style attributes are not escaped on the way into the generated heading HTML. The referenced code pins the failure to both ends of the rendering pipeline - kernel/model/render.go (lines 71-76), where the kernel builds heading markup, and app/src/util/Tree.ts (lines 133 and 194), where the frontend renders the outline and bookmark dock trees. Because the style attribute is emitted verbatim, an attacker-controlled value can break out of the attribute context and introduce script or event-handler content that executes in the renderer origin, where Electron's privileged APIs are reachable; a hardened configuration with context isolation, sandboxing and Node integration disabled would limit the outcome to script execution in the application's own context. The single affected CPE, cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:*, indicates that every released version up to and including 3.8.4 is in scope, and the vulnerability was reported by VulnCheck (tags: XSS, Siyuan).
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
Network-deliverable via crafted notebook (PR:N) but requires victim to open/render content (UI:R); Electron renderer with full system access breaks out of the app to the OS, so S:C with full C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
SiYuan through 3.8.4 fails to escape heading style attributes when rendering outline and bookmark dock HTML, allowing stored cross-site scripting. Attackers can supply crafted notebooks or call administrative endpoints to inject malicious style values that execute in the Electron renderer with full system access.
Technical POC Analysis
CWE-79 (Improper Neutralization of Input During Web Page Generation).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan desktop versions through 3.8.4 are affected by a stored cross-site scripting flaw that escalates to full code execution on the end user's machine, because the application's Electron renderer runs with unrestricted system privileges rather than browser sandboxing. Any employee who imports or opens a maliciously crafted notebook and then views the affected heading in the outline or bookmark dock can trigger host-level compromise, requiring only that a user interact with the content. Because there is no vendor-released patch, leadership should treat this as an unmitigated endpoint risk for every SiYuan installation in the environment, particularly for staff who routinely handle notebooks from external or untrusted sources.
No vendor-released patch identified at time of analysis. Interim mitigations include prohibiting import or opening of notebooks from untrusted or external sources, restricting SiYuan to trusted content only, running the application without administrative privileges on the host, isolating affected endpoints from sensitive network segments and shared repositories, blocking unnecessary outbound network access from the SiYuan process, and monitoring endpoint telemetry for script execution or unexpected child processes spawned by SiYuan's Electron renderer. Note that exploitation requires user interaction: the payload fires only when the victim surfaces the affected heading in the outline or bookmark dock.
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-83459
GHSA-qvp6-cjg5-8753
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB