CVE-2026-31807: siyuan · Cross-site Scripting
Affects siyuanSource CVE Database V5
Mentioned vulnerabilities
Not known to be exploited · public detection template (Nuclei) · CVSS 6.4 Medium : upgrade to 3.5.10 when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.5.10
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Mar 2026
Detectable: evidence found.
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.5.10.
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
The primary mitigation is to upgrade SiYuan to version 3.5.10 or later, where the SVG sanitizer has been improved to block SVG animation elements that enable this bypass. Until the upgrade can be applied, organizations should consider implementing web application firewalls (WAFs) with rules to detect and block suspicious SVG payloads containing animation elements like <animate> and <set>. Additionally, restricting access to the /api/icon/getDynamicIcon endpoint or limiting its exposure to trusted users can reduce risk. Security teams should audit logs for unusual requests to this endpoint and monitor for phishing attempts that might leverage this vulnerability. Developers should review and enhance input sanitization routines to handle dynamic SVG elements comprehensively and consider adopting well-maintained third-party sanitization libraries with proven effectiveness against SVG-based XSS. User education on avoiding suspicious links and enabling browser security features such as Content Security Policy (CSP) can further mitigate exploitation impact.
Description
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.