Stored XSS in SiYuan lets attackers run OS commands via shared files
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- 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 before 3.8.11 contains a stored cross-site scripting flaw (CWE-79) that lets attackers store block attributes named like DOM event handlers, such as onmouseover, so they run script when the content is rendered. An attacker who shares a crafted .sy.zip package or Markdown file can execute OS commands through Node integration in the desktop app, and the CVSS 4.0 vector requires user interaction with no privileges.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| siyuan-note | siyuan | before 3.8.11 | 3.8.11 | Patch available | CNA |
- siyuan Vendorsiyuan-note Affected 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.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:* | — | — | siyuan-note |
- cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:* Versions — — ·siyuan-note
Remediation
Update siyuan-note SiYuan to version 3.8.11, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
- 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-98902 DOM-based XSS in SiYuan AI agent chat panel can run OS commandsPriority HIGH 69
- 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
- 2026-11-26 Threatist record created from CVE-2026-137470
- 2026-11-27 Alias added: GHSA-8mjj-857q-w485
- 2026-11-27 CISA SSVC decision points changed
References
More siyuan-note vulnerabilities
- 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
Sources
- CVE-2026-137470 · CVE Program
- CVE-2026-137470 · NVD
- FIRST EPSS
- GHSA-8mjj-857q-w485 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences