Skip to main content

SiYuan CVE-2026-92985

| EUVDEUVD-2026-81622 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-09-17 VulnCheck GHSA-29wc-8rjr-p9x2
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious .sy notebook with HTML in bookmark label
  2. Delivery
    Deliver file via share/sync to victim
  3. Exploit
    Victim imports notebook into SiYuan
  4. Execution
    Dock tree renders label unescaped, script executes in renderer
  5. Impact
    Invoke child_process for 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

Exploitation requires the victim to import or open an attacker-supplied malicious .sy notebook file containing unescaped HTML in a bookmark attribute, which is then rendered in the dock tree by SiYuan versions before 3.8.4. The key limiting factor is required user interaction (UI:A/UI:R): the attacker cannot trigger this remotely without the victim ingesting the crafted notebook, making delivery dependent on social engineering (shared templates, synced/exported workspaces). No authentication is needed (PR:N), and it works against default configurations of the Electron desktop build where the renderer has Node.js/child_process access; the impact escalates to command execution specifically because of that Electron integration.

Impact

This is a genuinely high-priority flaw despite lacking exploitation signals, because it chains a stored XSS (CWE-79) into full command execution: the injected script runs in SiYuan's Electron renderer with Node.js child_process access, turning a 'web' bug into host-level RCE. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:A/VC:H/VI:H/VA:H, 8.6) confirms network-reachable, low-complexity, unauthenticated triggering with high confidentiality/integrity/availability impact, gated only by required user interaction (UI:A) - the victim must import or open the malicious notebook. No EPSS score, KEV listing, or public POC was provided, so there is no evidence of active or widespread exploitation; risk is currently theoretical-but-severe. The one meaningful tension is UI:A combined with SC:N/SI:N/SA:N: the vector treats OS command execution as an in-system impact rather than a scope change, which arguably understates the escape from renderer to host - a point defenders should weigh when prioritizing.

Exploit ScenarioDerived

An attacker crafts a malicious .sy notebook file with an unescaped HTML/JavaScript payload embedded in a bookmark label and shares it (e.g., a community template, exported workspace, or synced notebook). When a victim imports the notebook and SiYuan renders the bookmark in the dock tree, the payload executes in the Electron renderer and invokes child_process to run arbitrary OS commands as the user. No public exploit code was identified at time of analysis, but the fix commit and a test case demonstrating the injection make weaponization straightforward.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 17, 2026

Stored cross-site scripting in SiYuan notebook software before 3.8.4 lets an attacker who supplies a crafted .sy notebook file execute arbitrary script inside the Electron renderer, which in the default desktop build has Node.js child_process access and therefore escalates to host-level command execution. The flaw arises because bookmark labels read from imported notebook files are written into the dock tree HTML without escaping, so unescaped markup in a bookmark attribute is rendered as live DOM. No credentials are required (CVSS PR:N) and no public exploit code or CISA KEV entry has been identified at time of analysis, but the vector requires the victim to import or open the malicious notebook (UI:A/UI:R), making delivery dependent on social engineering; EPSS data was not supplied.

RemediationAI

Upgrade to the vendor-released patch: SiYuan 3.8.4 (or later), which is the first version containing commit 6f093ebe50afc503e2a8b056164293054f8509e7; the change escapes item.name in the dock tree unless the producer explicitly sets nameIsHTML, and adds regression tests in app/src/util/Tree.test.ts. Confirm the fix by verifying the tree renderer uses escapeHtml and that the API contract types carry the nameIsHTML field. Validated workarounds if immediate upgrade is impossible: treat every .sy notebook, template, or synced workspace as untrusted input and never import or open notebook files from third parties, accepting that this blocks the primary collaboration/import workflow; and run SiYuan with least privilege - under a dedicated low-privilege OS account or in a sandboxed/containerized profile without access to sensitive host paths or credentials - which reduces but does not eliminate code execution impact. There is no configuration toggle that simply disables the affected dock-tree bookmark rendering, and blocking network ports does not help because the payload is file-delivered rather than remotely triggered. Consult https://github.com/siyuan-note/siyuan/security/advisories/GHSA-jhfc-9mcq-8p8v and https://www.vulncheck.com/advisories/siyuan-before-3.8.4-cross-site-scripting-via-bookmark-labels for the authoritative vendor guidance.

Affected VersionsENISA

SiYuan 0 <3.8.4

Affected Packages

euvd siyuan fix: 3.8.4

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 root cause is a classic output-encoding failure (CWE-79) in the tree rendering path of SiYuan's Electron frontend. In app/src/util/Tree.ts (around line 134), the createTopLevelItem template literal interpolated item.name directly into an innerHTML assignment for the dock tree span, so any '<' character in a name produced an element rather than text content. The names came from notebook data: bookmark labels parsed out of .sy files flow through the search/backlink contract types (BacklinkPath, SearchPath, IBlockTree) and reach the tree renderer unescaped. Because the renderer runs with Node.js integration in the Electron desktop build, script reaching that sink can require child_process and run OS commands, turning an XSS into remote code execution on the host. The upstream fix commits 6f093ebe50afc503e2a8b056164293054f8509e7 and the accompanying test file add a nameIsHTML flag to the API contract types (search_block.go, index.d.ts) and change the template to '${item.nameIsHTML ? item.name : escapeHtml(item.name)}', so only producers that explicitly mark a name as trusted HTML bypass escaping.

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

Vendor (VulnCheck) PRIMARY 8.6 HIGH
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
vuln.today AI 9.6 CRITICAL

Network-delivered malicious file, low complexity, no auth (PR:N), but victim must import it (UI:R); S:C and C/I/A:H because the renderer XSS escapes to OS command execution via child_process.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

SiYuan versions before 3.8.4 fail to escape bookmark labels imported from notebook files when rendering them in the dock tree. Attackers can craft malicious .sy notebook files with unescaped HTML in bookmark attributes that execute scripts in the Electron renderer with access to child_process for command execution.

Technical POC Analysis

CWE-79 (stored XSS).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

SiYuan notebook software versions prior to 3.8.4 are affected by a stored cross-site scripting vulnerability that enables an attacker to execute arbitrary code on a victim's host when they open a malicious notebook file. The flaw requires no authentication and can lead to full system compromise, posing a significant risk to users who handle untrusted notebook content and potentially enabling lateral movement within the organization. Leadership should prioritize immediate patching and user awareness to mitigate this high-severity threat.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
Low
niche open-source self-hosted personal note-taking app, no enterprise footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy