CVE-2026-31807B3log Siyuan
Medium 6.4 No auth needed
Follow: this CVE · B3log · B3log Siyuan We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 4.0
- 6.4
- EPSS
- —
- Auth required
- No
- Published
- Mar 10, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
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
What happens
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.
What to do
- Apply the vendor's security update for Siyuan.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/siyuan-note/siyuan/kernel |
< 0.0.0-20260310025236-297bd526708f |
0.0.0-20260310025236-297bd526708f |
go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260310025236-297bd526708f |
| Go | github.com/siyuan-note/siyuan/kernel |
< 0.0.0-20260310025236-297bd526708f |
0.0.0-20260310025236-297bd526708f |
go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260310025236-297bd526708f |
Per OSV / GitHub Advisories (GHSA-5hc8-qmg8-pw27, GO-2026-4667). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| b3log | siyuan | < 3.5.10 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:1042-1 · Mar 25, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory