Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker obtains low-privilege workspace access
-
DeliveryPlaces crafted text asset with embedded XSS payload in workspace
-
ExploitVictim searches workspace and triggers asset preview
-
ExecutionSiYuan inserts raw asset content into DOM via innerHTML
-
PersistAttacker-controlled JavaScript executes in SiYuan browser origin
-
ImpactAuthenticated SiYuan API calls exfiltrate notes or manipulate workspace data
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 | The attacker must hold low-privilege access to the SiYuan workspace sufficient to place or upload text-based asset files (PR:L per CVSS 4.0); external unauthenticated exploitation is not possible. The victim must actively trigger the search asset preview feature and view the crafted asset in the preview panel (UI:A per CVSS 4.0) - passive browsing without previewing the asset does not trigger the payload. The vulnerability is confined to the search asset preview rendering path; normal document editing and rendering are not reported as affected. Exploitation is further bounded to users sharing the same SiYuan instance and workspace. |
| Impact | The CVSS 4.0 score of 8.4 (AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N) is a reasonable characterization of this stored XSS: network-reachable, low attacker complexity, but constrained by both a low-privilege workspace access requirement (PR:L) and mandatory victim interaction to trigger the preview (UI:A). No public exploit code has been identified and SiYuan is not listed in the CISA KEV catalog at time of analysis, which lowers immediate exploitation urgency compared to the raw score. EPSS data was not included in the source intelligence, so automated exploitation probability cannot be quantified. The meaningful limiting factor is PR:L - an external, unauthenticated attacker cannot exploit this without first gaining workspace membership; however, even a mid-sized municipal IT team in leszno running a shared SiYuan instance for collaborative note-taking should treat this as urgent because the payload delivers full authenticated API access once triggered, enabling silent exfiltration of all indexed workspace content. The high C/I impact metrics are well-grounded given that SiYuan's API exposes notebook content, configuration, and asset management endpoints accessible from the victim's session. |
| Exploit ScenarioDerived | A low-privileged workspace member crafts a plain-text file embedding an HTML or JavaScript payload and uploads it to a shared SiYuan workspace. When a victim searches the workspace and the asset preview panel renders the file, SiYuan passes the raw content to innerHTML, executing the attacker's script within the SiYuan browser origin. The script can then silently call SiYuan's authenticated REST API to enumerate notebooks, exfiltrate note content, or modify workspace data - all without further attacker interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Stored cross-site scripting in SiYuan's search asset preview feature allows authenticated workspace members to inject and execute arbitrary JavaScript in other users' browser sessions. All SiYuan releases before v3.8.2 are affected; the flaw stems from unescaped asset content passed directly to innerHTML during search preview rendering. Successful exploitation grants the attacker authenticated API access within the SiYuan origin, enabling workspace data exfiltration and content manipulation on behalf of the victim.
RemediationAI
Upgrade SiYuan to version 3.8.2 or later, which resolves the innerHTML sanitization defect per the vendor security advisory GHSA-64gp-333q-mq6j (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-64gp-333q-mq6j). If immediate upgrade is operationally infeasible, restrict workspace membership strictly to fully trusted users, since exploitation requires the attacker to place crafted files within the shared workspace - removing untrusted members eliminates the threat vector. If the search asset preview feature can be disabled in SiYuan's configuration, doing so would eliminate the specific vulnerable attack surface at the cost of reduced asset discoverability. Network-layer controls cannot mitigate this vulnerability because the payload executes entirely client-side within the victim's browser after the malicious asset is already resident in the workspace.
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 (CPE: cpe:2.3:a:siyuan-note:siyuan) is a local-first personal knowledge management application that indexes workspace assets and renders previews through a browser-based interface. The search asset preview subsystem inserts indexed text-asset content into the DOM using the innerHTML property, which parses raw HTML markup including script elements and inline event handlers rather than treating content as plain text. CWE-79 (Improper Neutralization of Input During Web Page Generation) precisely describes this root cause: the application fails to escape or sanitize user-controlled content before it reaches an HTML sink. Because SiYuan operates within a consistent browser origin, script execution triggered via this path inherits the full authenticated session context, including access to SiYuan's internal JavaScript API layer for workspace management.
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:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Workspace membership (PR:L) and victim preview action (UI:R) required; full authenticated API access justifies C:H/I:H; no availability impact; scope unchanged as execution stays within SiYuan origin.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before v3.8.2 contains a stored cross-site scripting vulnerability in the search asset preview feature that fails to escape indexed asset content before inserting it into the DOM using innerHTML. Attackers who can place crafted text assets in a workspace can execute JavaScript in the SiYuan origin when victims preview the assets, enabling authenticated API requests and workspace manipulation.
Technical POC Analysis
Stored cross-site scripting (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 versions before v3.8.2 allow any workspace member to compromise other users' browser sessions through a stored code-injection attack in the search feature. A malicious insider or compromised account could steal sensitive workspace data or manipulate shared documents without detection, affecting all users within the collaborative environment. This insider risk exposure is particularly acute for organizations using SiYuan to share intellectual property, financial data, or strategic information.
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.
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-74840
GHSA-gxwj-6x5p-v77c
NVD
CVE.org
EPSS
VulDB
Exploit-DB