# CVE-2026-31807: SiYuan has a SVG Sanitizer Bypass via \`\<animate\>\` Element — Unauthenticated XSS

- Priority: **Routine**
- Reason: Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-10 · Modified: 2026-03-11
- Aliases: GHSA-5hc8-qmg8-pw27, GO-2026-4667
- Record: https://cvemate.com/vulnerability/CVE-2026-31807 · JSON: https://cvemate.com/vulnerability/CVE-2026-31807/json

## Description

```text
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.
```

## Signals

- CVSS: 6.4 medium (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
- EPSS: 0.492%, percentile 43.877%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- b3log siyuan: \< 3.5.10
- github.com/siyuan-note/siyuan kernel (Go): \< 0.0.0-20260310025236-297bd526708f
- siyuan-note siyuan: \< 3.5.10

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5hc8-qmg8-pw27>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31807>
- <https://github.com/siyuan-note/siyuan>
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.5.10>

---

Data as of 2026-12-05T09:59:48.422Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
