Skip to main content

SiYuan Note EUVDEUVD-2026-136605

| CVE-2026-137469 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-11-26 VulnCheck
7.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Configure or poison agent model source
  2. Delivery
    Return event-handler HTML in reply
  3. Exploit
    Final render writes innerHTML unsanitised
  4. Execution
    Node.js require() fires onerror handler
  5. 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

Exploitation is confined to the SiYuan DESKTOP application running in LOCAL-KERNEL mode, where the main window runs with nodeIntegration:true, contextIsolation:false, webSecurity:false and the CSP meta tag commented out; remote-kernel mode applies a CSP without unsafe-inline that blocks this path, so local mode is the exposed configuration. The user must actively use the AI agent chat panel, and the malicious event-handler markup must reach the final/saved render - either via indirect prompt injection where the model reproduces the markup (route a, probabilistic) or via a model endpoint the user has configured that returns the markup directly (route b, deterministic). The payload must be block-level raw HTML (final-render path only) or kramdown attribute-list syntax (both paths). Trigger occurs when a reply finishes streaming or when a persisted session is reopened, so passive user interaction is required. Limiting factors: non-default/specific deployment (desktop + local kernel + AI agent in use), required user interaction, model cooperation for route a, and attacker control of the configured endpoint for route b; affected versions 3.7.0 through 3.8.10 only.

Impact

This is a genuinely high-impact but precondition-gated flaw, and the signals point to deliberate prioritisation rather than emergency patching. The impact ceiling is maximal: a DOM XSS that reaches Node.js require() in the desktop Electron window yields OS command execution with the user's privileges (VC:H/VI:H/VA:H). However, the exploitability metrics temper this - the vendor's CVSS 4.0 vector pairs AV:N and PR:N with AC:H, AT:P and UI:P, meaning real preconditions and user interaction are required, and my independent assessment agrees. EPSS is not provided in the input, so exploitation probability cannot be quantified. The CVE is NOT listed in CISA KEV, so there is no confirmed active exploitation. A detailed proof of concept DOES exist in the GHSA advisory and was confirmed working in a real Electron renderer (Electron 44.10.0, the app's exact webPreferences) during the advisory review, so the chain is demonstrably real rather than theoretical - but this is a researcher PoC in the advisory, not a packaged weaponised exploit and not evidence of in-the-wild use. The two attack routes differ sharply in reliability: route (a), indirect prompt injection, is probabilistic because the model must reproduce the markup; route (b), a model endpoint the user has configured, is deterministic but assumes an unusual threat model where the configured endpoint is attacker-controlled. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with high severity plus meaningful exploitation friction. Net: a real priority to patch for desktop local-kernel users of the AI agent feature, but not a drop-everything mass-exploitation scenario on the available evidence.

Exploit ScenarioDerived

A user runs the SiYuan desktop app in local-kernel mode and uses the AI agent chat panel either against attacker-influenced source material (indirect prompt injection) or against a model endpoint that an attacker controls or has induced them to configure. The assistant reply includes block-level raw HTML or kramdown attribute-list markup carrying an inline event handler such as onerror; when the stream finalises (or when a saved session is reopened) the panel assigns the unsanitised render to innerHTML, auto-firing the handler. Because the window has nodeIntegration enabled and no CSP, the handler calls require('child_process') and executes OS commands as the user - a full chain confirmed working in a real Electron renderer in the advisory PoC.

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 – Nov 26, 2026

DOM-based cross-site scripting in SiYuan Note's AI agent chat panel (versions 3.7.0 through 3.8.10) lets attacker-influenced assistant replies run script when the final or restored render is built; in the desktop app running in local-kernel mode that script reaches Node.js require() and executes OS commands with the user's privileges. The panel's Lute engine is created without sanitisation and its output is assigned to innerHTML while the streaming preview uses a sanitised instance, so block-level raw HTML event handlers and kramdown attribute-list attributes survive to the final render. Exploitation is precondition-gated (desktop plus local kernel, active AI agent use, and either indirect prompt injection the model reproduces, which is probabilistic, or a configured model endpoint returning the markup, which is deterministic), the advisory includes a proof-of-concept that executed a command in a test Electron renderer with the app's webPreferences, and the flaw is fixed in v3.8.11 with a this_week priority.

RemediationAI

Upgrade to SiYuan v3.8.11, the vendor-released patch that addresses the unsanitised final render in the AI agent chat panel (see https://github.com/siyuan-note/siyuan/security/advisories/GHSA-3rvg-qxwg-f3c6 and https://www.vulncheck.com/advisories/siyuan-3.7.0-before-3.8.11-dom-xss-via-ai-agent-chat-panel). If upgrading is not immediately possible, running the desktop app in remote-kernel mode is a compensating configuration: that mode applies a CSP without unsafe-inline, which blocks the inline event-handler path that local-kernel mode leaves open, at the cost of depending on a remote kernel deployment instead of the local one. Exposure on the two delivery routes can also be reduced by restricting the AI agent to trusted, user-controlled model endpoints, since route b is deterministic and returns the markup directly, and by avoiding pointing the agent at untrusted material it may quote back, since route a additionally depends on the model reproducing the markup. Neither configuration change removes the underlying innerHTML sink, so v3.8.11 remains the complete fix.

Affected VersionsENISA

SiYuan 3.7.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

SiYuan renders assistant output through its Lute Markdown engine. The agent chat panel builds a dedicated engine via getAgentLute() with no sanitize option (app/src/layout/dock/agent/AgentChat.ts:319), and that factory calls lute.SetSanitize(undefined), leaving the sanitiser off, while always enabling kramdown attribute lists (SetKramdownIAL(true), app/src/protyle/render/setLute.ts:62). The rendered string is assigned to innerHTML in finalizeStreamingBody (AgentChat.ts:3649) and appendPersistedAssistant (AgentChat.ts:2047, plus 3681/3972/4404), and the post-render pass in AgentMessageRenderer.ts:194 only wires math and code highlighting without stripping attributes; the streaming preview, by contrast, uses a second instance created with sanitize:true (AgentMarkdownParser.ts:82, AgentMarkdownWorker.ts:15), so the user sees sanitised output mid-stream that is replaced by the unsanitised render when the stream ends. This is CWE-79: model-derived content crossing into an HTML execution sink without output encoding or sanitisation. The escalation comes from the desktop shell: the main window runs with nodeIntegration:true, contextIsolation:false and webSecurity:false (app/electron/shared/desktopDefaults.ts:18-23) and the CSP meta tag is commented out (app/src/assets/template/app/index.tpl:5-6), allowing an inline event handler to call require('child_process'); remote-kernel mode applies a CSP without unsafe-inline (app/electron/remote/remoteProtocol.ts:266) and blocks this path. The kernel relays assistant tokens verbatim (kernel/agent/agent.go:1040 writeContent), so bytes from a configured model endpoint reach the sink unchanged, and the trigger fires when a reply finishes streaming or when a saved session is reopened rather than while streaming.

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

AC:H and UI:R because the model must reproduce attacker markup and the user must run the agent or reopen a session; PR:N as no app authentication is needed; C/I/A:H from OS command execution with user privileges.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/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
High
Attack Requirements
Present
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 7.7

DescriptionCVE.org

SiYuan 3.7.0 before 3.8.11 contains a DOM-based cross-site scripting vulnerability in the AI agent chat panel, which renders final and saved assistant replies into innerHTML without HTML sanitisation. Attackers influencing model replies via indirect prompt injection or a configured model endpoint can inject event-handler markup, executing OS commands through Node.js integration in desktop local-kernel mode.

Technical POC Analysis

DOM-based XSS (CWE-79) in SiYuan's AI agent chat panel, in the render pipeline of app/src/layout/dock/agent/AgentChat.ts.

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-137469 is a high-severity vulnerability in SiYuan Note (versions 3.7.0-3.8.10) where AI-generated chat responses can execute malicious OS commands on the user's machine under certain preconditions. This puts sensitive data and system integrity at risk for employees using this note-taking tool with the AI agent on desktop.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 64% exploitable
Prevalence
Low
niche open-source personal note-taking app, limited production/enterprise footprint
Social Media
2
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.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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