CVE-2026-32940: siyuan · Cross-site Scripting
Affects siyuanSource CVE Database V5
Not known to be exploited · CVSS 9.3 Critical : upgrade to 3.6.1 as a priority.
Data as of 31 Oct 2026, 08:20 UTC
Contested
Critical score, yet low EPSS after six months- EPSS
- 0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade siyuan and siyuan-note/siyuan to 3.6.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| siyuan-notesiyuan | Affected
| Fixed in
|
GitHubsiyuan-note/siyuanpkg:github/siyuan-note/siyuanOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Organizations should immediately upgrade SiYuan to version 3.6.1 or later, where the vulnerability is fixed. Until upgrade is possible, implement strict network access controls to restrict access to the /api/icon/getDynamicIcon endpoint, limiting it to trusted users or internal networks only. Employ web application firewalls (WAFs) with custom rules to detect and block requests containing suspicious SVG content or data URI schemes like data:text/xml and data:application/xml in href attributes. Educate users about the risks of clicking unknown or suspicious links, especially those involving SVG content. Review and sanitize any user-generated SVG content before rendering or embedding it in web pages or documents. Monitor logs for unusual requests to the vulnerable endpoint and signs of attempted exploitation. Consider disabling or restricting embedding of SVGs via <object> or <embed> tags in user-facing applications if feasible. Conduct regular vulnerability scanning and penetration testing to detect similar issues proactively.
Description
CVE-2026-32940 is a critical cross-site scripting (XSS) vulnerability in SiYuan personal knowledge management system versions 3.6.0 and below. The vulnerability arises from incomplete sanitization of SVG content in the unauthenticated /api/icon/getDynamicIcon endpoint, which improperly allows JavaScript execution via crafted SVGs using bypassed MIME types (data:text/xml and data:application/xml). An attacker can craft a URL that, when visited or embedded via <object> or <embed>, triggers JavaScript execution through injected interactive links inside SVG images. The vulnerability does not affect <img> tag rendering due to lack of interactivity. Exploitation requires user interaction (clicking the injected link) but no authentication. This issue has been fixed in version 3.6.1.
References
- github.com/siyuan-note/siyuan/security/advisories/GHSA-4mx9-3c2h-hwhg (opens in a new tab)
- github.com/siyuan-note/siyuan/commit/d01d561875d4f744e9f6232f1d4831e3642b8696 (opens in a new tab)
- github.com/advisories/GHSA-6865-qjcf-286f (opens in a new tab)
- github.com/siyuan-note/siyuan/releases/tag/v3.6.1 (opens in a new tab)