SiYuan could show a sanitised streaming preview and then replace it with executable assistant HTML when the reply finished. The maintainer also identifies the unsafe path when a saved conversation is reopened, with OS-command consequences in the application's Node-enabled local desktop mode. ## The rendering phase changes the trust decision The advisory,…
Inspect the ClaimsCase · DiggingBeagle record
SiYuan could replace a sanitised streaming preview with executable assistant HTML
Final and restored chat rendering retained active markup that could reach OS commands in desktop local-kernel mode.
Published by DiggingBeagle:
Public disclosure: Nov 11, 2026
Reported real-renderer demonstration under desktop local-kernel preferences; no production exploitation or independently tested packaged fix.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
Reported real-renderer demonstration under desktop local-kernel preferences; no production exploitation or independently tested packaged fix. The cited original records were inspected; experiments and deployed fixes were not independently reproduced. A comparable realized-harm magnitude is not established, so impact remains ungraded. Enrichment adds the cited prerequisite, control or measurement boundary without upgrading the independent evidence grade or estimating realized harm.
Assessed Nov 27, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-R289-SIYUAN-AI-XSS-1 · CLM-R289-SIYUAN-AI-XSS-2 · CLM-R289-SIYUAN-AI-XSS-3 · CLM-E290-SIYUAN-AI-XSS-BOUNDARY · SiYuan GHSA-3rvg-qxwg-f3c6: assistant HTML to Electron command execution · CVE-2026-137469: SiYuan 3.7.0 before 3.8.11 DOM XSS via AI Agent Chat Panel · SiYuan v3.8.11 release: formats, snapshot restoration and AI memory revocation
At a glance
Test streaming, stop/error finalisation and restored sessions separately, including Markdown extension attributes. A content filter and an isolated renderer protect different boundaries.
Read the implicationsThe full shipped desktop application and its fixed paths were not executed. The advisory’s remote-mode CSP changes the exposure and should not be generalized to local mode.
Limits and uncertaintyFull account
SiYuan could show a sanitised streaming preview and then replace it with executable assistant HTML when the reply finished. The maintainer also identifies the unsafe path when a saved conversation is reopened, with OS-command consequences in the application's Node-enabled local desktop mode.
The rendering phase changes the trust decision
The advisory, credited to president-xd, says the chat panel creates a Markdown engine without sanitization and inserts its output through innerHTML. The incremental preview uses a different, sanitised engine. Finalization and persisted-message rendering therefore expose sinks that an apparently safe preview does not test.
The advisory also identifies kramdown attribute-list syntax carrying event attributes even when sanitization is enabled. Enabling one missing option is consequently not evidence that every final, interrupted and reopened-message path is safe.
Content influence becomes host authority only under the stated configuration
The reported command-execution demonstration uses an Electron renderer configured like local-kernel mode: Node integration enabled, context isolation disabled and no local-mode CSP. Indirect injection requires a model to reproduce attacker-influenced markup; a user-configured model endpoint can return it directly without that probabilistic step. Remote-mode CSP changes the exposure.
The advisory lists 3.7.0 through 3.8.10 as affected and 3.8.11 as patched. A renderer harness is not a completed production intrusion, and the packaged application was not independently reproduced. The later release's memory-snapshot restoration behavior concerns a separate lifecycle boundary; it does not establish that this XSS ran after a rollback.
Mechanism and trust boundary
- 01
Reply content is influenced
A source or configured endpoint supplies active assistant markup.
Boundary: Model output remains untrusted content.
- 02
Rendering phase changes
Finalisation or session restoration uses a different sanitisation path.
Boundary: Safety in the streaming preview must persist through every render.
- 03
Renderer reaches host authority
Node-enabled local mode lets script execution reach OS commands.
Boundary: Renderer isolation limits the consequence of content sanitisation failure.
Timeline
- Nov 11, 2026Event type unspecified
Finding publicly documented
Date of the cited disclosure or manuscript, not an inferred date of compromise.
- Nov 11, 2026disclosure
Public disclosure
Claims & evidence
CLM-R289-SIYUAN-AI-XSS-1The maintainer reports inconsistent sanitisation between streamed previews, final assistant messages and restored sessions, plus a kramdown attribute-list gap.supported
Basis: reported finding
- supportsSiYuan GHSA-3rvg-qxwg-f3c6: assistant HTML to Electron command executionprimary disclosure
Description: Summary and Details; AgentChat.ts final and appendPersistedAssistant sinks
CLM-R289-SIYUAN-AI-XSS-2The advisory reports OS command execution in an Electron 44.10.0 renderer with the application’s webPreferences, and lists affected 3.7.0 through 3.8.10 and patched 3.8.11.supported
Basis: reported finding
- supportsSiYuan GHSA-3rvg-qxwg-f3c6: assistant HTML to Electron command executionprimary disclosure
Proof of concept, Impact and Package sections
CLM-R289-SIYUAN-AI-XSS-3The CNA links this advisory to CVE-2026-137469, published November 26; that is later than the November 11 advisory and November 19 release.supported
Basis: reported finding
- supportsCVE-2026-137469: SiYuan 3.7.0 before 3.8.11 DOM XSS via AI Agent Chat Panelprimary disclosure
cveMetadata.datePublished, containers.cna.references and datePublic
CLM-E290-SIYUAN-AI-XSS-BOUNDARYSiYuan's advisory identifies both final and persisted-message rendering sinks and an attribute-list route surviving sanitization; safe incremental preview behavior does not establish that the final or reopened message is safe.supported
Basis: reported finding
- supportsSiYuan GHSA-3rvg-qxwg-f3c6: assistant HTML to Electron command executionprimary disclosure
Details: finalizeStreamingBody, appendPersistedAssistant, other rerender sinks and kramdown attribute lists; Impact and reproduction boundaries
Implications
Test streaming, stop/error finalisation and restored sessions separately, including Markdown extension attributes. A content filter and an isolated renderer protect different boundaries.
Controls and mitigations
- Use the patched release and verify every final and persisted HTML sink, including attribute extensions; reduce Electron renderer privileges and maintain configuration-appropriate CSP.
Unknowns and contradictions
- The full shipped desktop application and its fixed paths were not executed.
- The advisory’s remote-mode CSP changes the exposure and should not be generalized to local mode.
Sources and citation
Material revision history
- Nov 27, 2026 · Published version · first publication · revision 292