Read the docs
TI-2026-26832 Aliases CVE-2026-34585GHSA-ff66-236v-p4fg

SiYuan: Stored XSS in imported .sy.zip content leads to arbitrary command execution

Priority HIGH 72CWE-79Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting, Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79 and CWE-94.

Summary

SiYuan is a personal knowledge management system. Prior to version 3.6.2, a vulnerability allows crafted block attribute values to bypass server-side attribute escaping when an HTML entity is mixed with raw special characters. An attacker can embed a malicious IAL value inside a .sy document, package it as a .sy.zip, and have the victim import it through the normal Import -> SiYuan .sy.zip workflow. Once the note is opened, the malicious attribute breaks out of its original HTML context and injects an event handler, resulting in stored XSS. In the Electron desktop client, this XSS reaches remote code execution because injected JavaScript runs with access to Node/Electron APIs. This issue has been patched in version 3.6.2.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00349 28th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed siyuan (siyuan-note): 3.6.2github.com/siyuan-note/siyuan/kernel (Go): 0.0.0-20260329142331-918d1bd9f967

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-notesiyuanbefore 3.6.23.6.2Patch availableCNA
—github.com/siyuan-note/siyuan/kernel (Go)before 0.0.0-20260329142331-918d1bd9f9670.0.0-20260329142331-918d1bd9f967Patch availableGHSA-ff66-236v-p4fg
  • siyuan Vendorsiyuan-note Affected before 3.6.2 Fixed in 3.6.2 Patch available CNA
  • github.com/siyuan-note/siyuan/kernel (Go) Vendor— Affected before 0.0.0-20260329142331-918d1bd9f967 Fixed in 0.0.0-20260329142331-918d1bd9f967 Patch available GHSA-ff66-236v-p4fg

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*before 3.6.2Vulnerablesiyuan-note
  • cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:* Versions before 3.6.2 Vulnerable ·siyuan-note

Remediation

  • Fix · CNA siyuan (siyuan-note) Fixed in 3.6.2
  • Fix · GHSA-ff66-236v-p4fg github.com/siyuan-note/siyuan/kernel (Go) Fixed in 0.0.0-20260329142331-918d1bd9f967 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-34585
  2. 2026-10-03 Alias added: GHSA-ff66-236v-p4fg

References

  • 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
  • TI-2024-35827 A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. CVSS 3.1CRITICAL 9.8
  • TI-2024-35826 A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. CVSS 3.1CRITICAL 9.8
  • TI-2024-35825 A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. CVSS 3.1CRITICAL 9.8
  • TI-2024-35824 A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. CVSS 3.1CRITICAL 9.8
See all 54 →

Sources