Read the docs
TI-2026-24362 Aliases CVE-2026-31807GHSA-5hc8-qmg8-pw27

SiYuan has a SVG Sanitizer Bypass via `<animate>` Element — Unauthenticated XSS

Priority LOW 35CWE-79Published · Updated

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
None · None · None
Fix status
Fixed

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

Summary

SiYuan is a personal knowledge management system. Prior to 3.5.10, SiYuan's SVG sanitizer (SanitizeSVG) blocks dangerous elements (<script>, <iframe>, <foreignobject>) and removes on* event handlers and javascript: in href attributes. However, it does NOT block SVG animation elements (<animate>, <set>) which can dynamically set attributes to dangerous values at runtime, bypassing the static sanitization. This allows an attacker to inject executable JavaScript into the unauthenticated /api/icon/getDynamicIcon endpoint (type=8), creating a reflected XSS. This is a bypass of the fix for CVE-2026-29183 (fixed in v3.5.9). This vulnerability is fixed in v3.5.10.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00495 42nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed siyuan (siyuan-note): 3.5.10github.com/siyuan-note/siyuan/kernel (Go): 0.0.0-20260310025236-297bd526708f

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

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.5.103.5.10Patch availableCNA
—github.com/siyuan-note/siyuan/kernel (Go)before 0.0.0-20260310025236-297bd526708f0.0.0-20260310025236-297bd526708fPatch availableGHSA-5hc8-qmg8-pw27
  • siyuan Vendorsiyuan-note Affected before 3.5.10 Fixed in 3.5.10 Patch available CNA
  • github.com/siyuan-note/siyuan/kernel (Go) Vendor— Affected before 0.0.0-20260310025236-297bd526708f Fixed in 0.0.0-20260310025236-297bd526708f Patch available GHSA-5hc8-qmg8-pw27

CPE configurations NVD · 1

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

Remediation

  • Fix · CNA siyuan (siyuan-note) Fixed in 3.5.10
  • Fix · GHSA-5hc8-qmg8-pw27 github.com/siyuan-note/siyuan/kernel (Go) Fixed in 0.0.0-20260310025236-297bd526708f Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-31807
  2. 2026-10-03 Alias added: GHSA-5hc8-qmg8-pw27

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