CVE-2026-31807
MEDIUM 6.4CVSS 4.0SiYuan has a SVG Sanitizer Bypass via `<animate>` Element — Unauthenticated XSS
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.
- Published
- 10 Mar 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-5hc8-qmg8-pw27GO-2026-4667
- Sources
- NVDJSONOSV GHSA-5hc8-qmg8-pw27JSONOSV GO-2026-4667JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.4 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | b3log | siyuancpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:* |
< 3.5.10 | 3.5.10 |
| OSV | Go | github.com/siyuan-note/siyuan/kernel | < 0.0.0-20260310025236-297bd526708f | 0.0.0-20260310025236-297bd526708f |
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5hc8-qmg8-pw27 · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-31807 · ADVISORY
- https://github.com/siyuan-note/siyuan · PACKAGE
- https://github.com/siyuan-note/siyuan/releases/tag/v3.5.10 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 10 Mar 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Mar 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Mar 2026)