Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege SiYuan user
-
DeliveryInject JS into Attribute View field/template/footer value
-
ExploitPayload stored unescaped in textarea
-
ExecutionVictim opens affected database menu
-
PersistScript executes in victim context
-
ImpactElectron nodeIntegration yields OS command execution
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 an authenticated attacker with write access to Attribute View content (PR:L) to inject payloads into one of four specific fields: field descriptions, template sources, select option descriptions, or footer calculation templates. Execution requires a second user to open the affected database menu (UI:A/victim interaction), so this favors multi-user or shared-workspace deployments. Full command execution is gated on the Electron desktop app being built/configured with nodeIntegration enabled; browser access or a hardened Electron configuration (nodeIntegration disabled) limits impact to script execution in the victim's session rather than host RCE. Affected versions are SiYuan 2.10.8 through before 3.8.4. |
| Impact | This is a genuine but conditionally-gated stored XSS with an escalation path to code execution. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H) scores 8.5 HIGH, but two structural limiters temper the real-world risk: PR:L means the attacker must already be an authenticated user with write access to Attribute View fields, and UI:A means a *second* victim user must open the affected database menu for the payload to fire. The VC:H/VI:H/VA:H (full compromise) rating is only justified on the Electron desktop app with nodeIntegration enabled, where XSS escalates to OS command execution with SiYuan's process privileges; in a plain browser or a hardened Electron config (nodeIntegration disabled), impact collapses to session-scoped script execution in the victim's context. No EPSS score, no CISA KEV listing, and no public POC were provided - consistent with a freshly-disclosed, VulnCheck-reported advisory rather than an actively-exploited flaw. Net: a real priority for the specific self-hosted-Electron threat model (insider or multi-user shared workspace), but not a widespread mass-exploitation risk. The vendor's SC:N/SI:N/SA:N is arguably too low, since the nodeIntegration RCE path crosses from the renderer into the host OS. |
| Exploit ScenarioDerived | An authenticated user on a shared or multi-user SiYuan instance edits an Attribute View field description, template source, select-option description, or footer calculation template, embedding a JavaScript payload that is stored unescaped in a textarea. When another user (e.g., an admin) later opens the affected database menu, the script executes in their context; on the Electron desktop build with nodeIntegration enabled, the payload runs OS commands with SiYuan's process privileges. No public exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 26, 2026
Stored cross-site scripting in SiYuan before v3.8.4 allows an authenticated attacker with write access to Attribute View content to persist JavaScript in four unsanitized textarea-backed fields - field descriptions, template sources, select option descriptions, and footer calculation templates - which then executes in the browser session of any user who opens the affected database menu. The desktop Electron build escalates the issue to command execution with SiYuan process privileges when nodeIntegration is enabled, while browser or hardened Electron deployments cap impact at script execution in the victim's session. Vendor-released patch: v3.8.4; no public exploit identified at time of analysis, and the vendor/GHSA advisory plus a VulnCheck advisory are the primary references. CVSS 4.0 base score is 8.5; our independent CVSS 3.1 assessment is AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H, consistent with a genuine but conditionally-gated stored XSS whose RCE escalation depends on the nodeIntegration setting.
RemediationAI
Vendor-released patch: upgrade SiYuan to v3.8.4 or later, as documented in the GitHub Security Advisory GHSA-h3p6-c22r-fx2j (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-h3p6-c22r-fx2j) and corroborated by the VulnCheck advisory (https://www.vulncheck.com/advisories/siyuan-before-3.8.4-stored-xss-via-attribute-view-textarea); patch status is listed as available from the vendor. If immediate upgrade is not possible, reduce exposure by restricting who can create or edit Attribute View content - field descriptions, template sources, select option descriptions, and footer calculation templates - to trusted users only, since the injection prerequisite is authenticated write access to those fields; note the trade-off that this breaks normal collaborative database authoring for untrusted contributors. For desktop deployments, verify that nodeIntegration is disabled (or migrate users to the browser client) so that the residual XSS cannot reach Node.js APIs and become command execution, accepting that some Electron plugins or integrations relying on nodeIntegration may stop working. Also treat review of existing Attribute View metadata as a cleanup step, because the payloads are stored and will keep firing until the fields are edited or the instance is patched, and monitor for anomalous SiYuan process activity as a compensating detection layer rather than a preventive control.
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, self-hosted knowledge-management and note-taking application that exposes databases through an 'Attribute View' abstraction, where each view carries metadata such as field descriptions, template sources, select option descriptions, and footer calculation templates. The root cause is CWE-79 (improper neutralization of input during web page generation, i.e., cross-site scripting): those four values are written into textarea elements without proper HTML/JavaScript escaping, so attacker-supplied markup survives storage and re-renders when another user opens the associated database menu. Because SiYuan's desktop client is built on Electron, the impact ceiling depends on configuration - when nodeIntegration is enabled the renderer can reach Node.js APIs, turning stored script execution into command execution running with the privileges of the SiYuan process; when nodeIntegration is disabled or the instance is accessed through a browser, the payload is confined to the victim's SiYuan session context. The affected product is identified by CPE cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:* spanning versions from 2.10.8 up to, but not including, 3.8.4, and the attack requires both a low-privileged authenticated writer for injection (PR:L) and a second user's interaction to trigger rendering (UI:R per the independent 3.1 vector).
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:H/SC:N/SI:N/SA:N
Authenticated writer (PR:L) plants payload that fires on victim action (UI:R); scope changes as renderer XSS escapes to OS command execution via Electron nodeIntegration, yielding high C/I/A.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan versions before v3.8.4 fail to properly escape four stored Attribute View values in textarea elements, allowing authenticated attackers to inject JavaScript by modifying field descriptions, template sources, select option descriptions, or footer calculation templates. Attackers can execute stored JavaScript when other users open affected database menus, and in the Electron desktop app with nodeIntegration enabled, this leads to command execution with SiYuan process privileges.
Technical POC Analysis
Advisory note: the GitHub advisory (GHSA-h3p6-c22r-fx2j) rates this Critical 9.0 with "No known CVE"; the CVE ID, HIGH rating and CVSS 4.0 score of 8.5 come from the tracking record.
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.4 contain a stored cross-site scripting flaw in Attribute View content that executes in the browser session of any user opening an affected database menu. An authenticated attacker with write access could persist malicious JavaScript, and on desktop Electron builds with nodeIntegration enabled this may escalate to command execution with SiYuan process privileges, while browser and hardened Electron deployments are limited to script execution in the victim’s session. Leadership should prioritize patching because affected users may face session compromise and, in desktop configurations, endpoint compromise; vendor-released patch v3.8.4 is available and no public exploit identified at time of analysis.
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-87737
GHSA-3pv4-cp72-vhj4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB