Skip to main content

SiYuan Note CVE-2026-137470

| EUVDEUVD-2026-136604 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-11-26 VulnCheck
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Craft malicious .sy.zip or Markdown note
  2. Delivery
    Share note with victim
  3. Exploit
    Victim imports and opens/previews
  4. Install
    Handler-named attribute becomes live DOM event handler
  5. C2
    Pointer event fires inline handler
  6. Execute
    require() reaches Node APIs
  7. Impact
    Execute OS commands as user

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

Full OS-command execution requires the SiYuan desktop application running in local-kernel mode, where the main window uses nodeIntegration:true, contextIsolation:false, webSecurity:false and the CSP meta tag is commented out - this is the exposed configuration. The attacker must get the victim to import a crafted .sy.zip data package or Markdown file and then open or preview the affected document (UI:P passive interaction), after which a pointer/click event over the block triggers the stored handler; no authentication is required (PR:N). LIMITING factors: remote-kernel mode applies a CSP without unsafe-inline and DOMPurify-sanitises preview output, so there it degrades to script execution within the authenticated kernel session rather than Node-backed OS RCE; exploitation also depends on the victim actually importing and viewing an externally shared note, and on versions before 3.8.11.

Impact

This is a credible, above-average-priority issue but not an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC/VI/VA:H, score 8.7) describes a network-reachable, low-complexity, unauthenticated flaw whose only gating factor is passive user interaction (the victim must import and open/preview a shared note). The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with serious-but-not-under-active-mass-exploitation. No CISA KEV listing is present in the input, so there is no confirmation of active exploitation, and no EPSS score is supplied to gauge statistical exploitation probability - both signals are simply absent rather than low. Countering the raw CVSS network/unauth reading: full OS-command RCE only materialises in the desktop app's local-kernel mode (nodeIntegration:true, contextIsolation:false, no CSP); remote-kernel sessions apply a CSP without unsafe-inline and DOMPurify-sanitise, reducing impact to script execution in the authenticated kernel session. The VulnCheck/GHSA advisory includes a fully worked proof of concept with execution confirmed in a real Electron 44.10.0 renderer, which raises practical risk considerably above a theoretical XSS. Net: a real priority for SiYuan desktop users on local-kernel mode, warranting prompt patching, but the limited deployment footprint and required user interaction keep it below drop-everything urgency.

Exploit ScenarioDerived

An attacker crafts a .sy.zip data package or Markdown file containing a block with a handler-named attribute (e.g. onmouseover) or an attribute-list line that the preview round-trip promotes to a live attribute, then shares it the way SiYuan notes are normally exchanged. The victim imports and opens or previews the note in the desktop app (local-kernel mode), and moving the pointer over the block fires the handler, which - because the main window runs with Node integration and no CSP - reaches require() and executes OS commands with the user's privileges. A detailed public PoC exists in the GHSA advisory with execution confirmed in a real Electron renderer; it is not packaged as a standalone weaponised exploit. Attack complexity is low but passive user interaction (import then open/preview) is required.

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

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

Alert me

AnalysisAIv1 – Nov 26, 2026

Stored cross-site scripting in SiYuan Note before 3.8.11 can escalate to OS command execution in the desktop app's local-kernel mode because handler-named block attributes such as onmouseover are persisted and later become live DOM event handlers in the editor and preview. An unauthenticated remote attacker can deliver a crafted .sy.zip package or Markdown file that the victim must import and open or preview, after which a pointer or click event triggers the handler; the desktop main window runs with nodeIntegration:true and no CSP, so the handler can reach Node APIs. The advisory documents a proof-of-concept reproduction and a real-Electron confirmation; version 3.8.11 fixes the issue, and this is assessed as an above-average-priority item for this week rather than an emergency.

RemediationAI

Upgrade to SiYuan Note 3.8.11 or later; the vendor-released patch is v3.8.11, documented at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x62v-7955-xx6v. Until upgraded, avoid importing or previewing .sy.zip data packages and Markdown files from untrusted sources, which removes the delivery vector but blocks normal note exchange. Running in remote-kernel mode reduces impact because that configuration applies a CSP without unsafe-inline and DOMPurify-sanitises preview output, but it does not eliminate script execution in the authenticated kernel session and changes the deployment model. Desktop local-kernel mode is the exposed configuration, and updating to 3.8.11 is the complete fix.

Affected VersionsENISA

SiYuan 0 <3.8.11

Affected Packages

euvd siyuan fix: 3.8.11

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

CWE-79 underlies this stored XSS in SiYuan's block attribute handling. SiYuan persists per-block attributes as kramdown IAL in .sy files, and the kernel's isValidAttrName only validates the character set, so names like onmouseover are accepted and stored. The editor open path returns the document attribute map through GetDocInfo and WYSIWYG.renderCustom calls setAttribute for every key outside a short allow-list that does not exclude on* names; the preview path (ExportPreview) formats the tree back to Markdown and reparses it with SetKramdownIAL(true), promoting text that looks like an attribute list into real attributes. Lute's HTML sanitiser filters raw HTML but not IAL attributes, and in local-kernel mode the frontend assigns preview HTML to innerHTML without sanitisation because sanitizeKernelHTML returns its input unchanged. The Electron main window in desktop local-kernel mode uses nodeIntegration:true, contextIsolation:false, webSecurity:false and has the CSP meta tag commented out, so an inline handler can call require() and execute OS commands with the user's privileges. Remote-kernel mode applies a CSP without unsafe-inline and DOMPurify-sanitises preview output, so there the impact is script execution within the authenticated kernel session rather than Node-backed OS command execution. The trigger is a pointer or click event over the affected block, and the advisory identifies two sinks: the editor's renderCustom element and the preview pane via Markdown-import text-to-attribute promotion.

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.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Network-delivered crafted file, unauthenticated (PR:N), but victim must import then open/preview the note (UI:R); local-kernel Node integration yields full code execution so C/I/A:H.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

2
Patch available
Nov 26, 2026 - 17:02 EUVD
CVE Published
Nov 26, 2026 - 16:01 cve.org
HIGH 8.7

DescriptionCVE.org

SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability that allows attackers to inject DOM event handlers by storing handler-named block attributes such as onmouseover. Attackers can share crafted .sy.zip packages or Markdown files whose attributes reach renderCustom or the unsanitised preview pane, executing OS commands via Node integration in the desktop app.

Technical POC Analysis

CWE-79, stored XSS via attribute name injection (not value breakout).

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

CVE-2026-137470 is a high-severity stored cross-site scripting vulnerability in SiYuan Note (prior to version 3.8.11) that can be escalated to OS command execution in the desktop app's local-kernel mode. An attacker can deliver a malicious file that, when imported and opened by a user, executes arbitrary commands on the victim's machine. This puts organizations using SiYuan Note at risk of unauthorized system access and potential data compromise, warranting prioritized remediation.

Business Impact: High
Compensating Controls

Vendor-released patch: 3.8.11

Threat Intelligence Overview

EPSS Score
0.6%
Top 59% exploitable
Prevalence
Low
niche open-source personal knowledge-management notes app, limited enterprise footprint
Social Media
3
Sightings
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.6%
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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
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-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-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-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