SiYuan
SiYuan: Unauthenticated reflected SVG XSS in `/api/icon/getDynamicIcon` (`type=8`) enables arbitrary JavaScript execution
SiYuan is a personal knowledge management system. Prior to version 3.5.9, an unauthenticated reflected XSS vulnerability exists in the dynamic icon API endpoint "GET /api/icon/getDynamicIcon" when type=8, attacker-controlled content is embedded into SVG output without escaping. Because the endpoint is unauthenticated and returns image/svg+xml, a crafted URL can inject executable SVG/HTML event handlers (for example onerror) and run JavaScript in the SiYuan web origin. This can be chained to perform authenticated API actions and exfiltrate sensitive data when a logged-in user opens the malicious link. This issue has been patched in version 3.5.9.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.5.9
Fixed in 3.5.9
Mitigation
Upgrade siyuan to 3.5.9 or later.
References
- Vendor advisory github.com/siyuan-note/siyuan/security/advisor…
Timeline
Days relative to CVE publicationFirst public PoC 25 days after publication; not in CISA KEV. First PoC: nuclei template: SiYuan Note - Cross-Site Scripting (nuclei template, 31 Mar 2026).
PoC repositories
Found on GitHub.No PoC repositories found yet.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: SiYuan Note - Cross-Site Scripting | 31 Mar 2026 | 14 Nov 2026 |