Read the docs

DOM-based XSS in SiYuan AI agent chat panel can run OS commands

Priority HIGH 69CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
High
Attack requirements
Present
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

SiYuan versions from 3.7.0 before 3.8.11 contain a DOM-based cross-site scripting flaw in the AI agent chat panel. The panel writes final and saved assistant replies into innerHTML without HTML sanitisation (CWE-79), so injected event-handler markup runs in the page. An unauthenticated remote attacker who can influence model replies through indirect prompt injection or a configured model endpoint can trigger this with user interaction, and in desktop local-kernel mode the script can run OS commands through Node.js integration.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00505 36th percentileScored 2026-11-30
Fix Fixed siyuan (siyuan-note): 3.8.11

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
siyuan-notesiyuan3.7.0 to before 3.8.113.8.11Patch availableCNA
  • siyuan Vendorsiyuan-note Affected 3.7.0 to before 3.8.11 Fixed in 3.8.11 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*——siyuan-note
  • cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:* Versions — — ·siyuan-note

Remediation

Upgrade SiYuan to version 3.8.11 or later. The sources list no fixed version for other SiYuan branches.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA siyuan (siyuan-note) Fixed in 3.8.11

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    siyuan-note siyuan 3.8.11

    4 records Highest priority Priority HIGH 1 HIGH, 1 MEDIUM, 2 LOW

    Other records, highest priority first

    • TI-2026-98903 Stored XSS in SiYuan lets attackers run OS commands via shared filesPriority MEDIUM 46
    • TI-2026-98901 Lockout bypass in SiYuan publish password lets attackers guess passwordsPriority LOW 39
    • TI-2026-98900 Path traversal in SiYuan WebDAV sync lets attackers overwrite notesPriority LOW 39

Timeline

  1. 2026-11-26 Threatist record created from CVE-2026-137469
  2. 2026-11-27 Alias added: GHSA-q78v-7r9v-pqm2
  3. 2026-11-30 CISA SSVC decision points changed

References

  • TI-2026-48492 SiYuan before v3.7.3 SQL Injection via searchDocs CVSS 4.0CRITICAL 9.9
  • TI-2026-48491 SiYuan before v3.7.3 SQL Injection via searchEmbedBlock CVSS 4.0CRITICAL 9.9
  • TI-2026-48490 SiYuan before v3.7.3 SQL Injection via fullTextSearchAssetContent CVSS 4.0CRITICAL 9.9
  • TI-2026-47010 SiYuan before v3.7.2 Unauthenticated Administrator Takeover via MCP CVSS 4.0CRITICAL 10.0
  • TI-2026-26050 SiYuan has directory traversal within its publishing service CVSS 3.1CRITICAL 9.8
  • TI-2026-25256 SiYuan: Authorization Bypass Allows Arbitrary SQL Execution via Search API CVSS 3.1CRITICAL 9.8
See all 271 →

Sources