Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConfigure or poison agent model source
-
DeliveryReturn event-handler HTML in reply
-
ExploitFinal render writes innerHTML unsanitised
-
ExecutionNode.js require() fires onerror handler
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 2
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
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.
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-136605
NVD
CVE.org
EPSS
GitHub
Exploit-DB