# CVE-2026-31809: SiYuan has a SVG Sanitizer Bypass via Whitespace in \`javascript:\` URI — 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-pmc9-f5qr-2pcr, GO-2026-4669
- Record: https://cvemate.com/vulnerability/CVE-2026-31809 · JSON: https://cvemate.com/vulnerability/CVE-2026-31809/json

## Description

```text
SiYuan is a personal knowledge management system. Prior to 3.5.10, SiYuan's SVG sanitizer (SanitizeSVG) checks href attributes for the javascript: prefix using strings.HasPrefix(). However, inserting ASCII tab (&#9;), newline (&#10;), or carriage return (&#13;) characters inside the javascript: string bypasses this prefix check. Browsers strip these characters per the WHATWG URL specification before parsing the URL scheme, so the JavaScript still executes. This allows an attacker to inject executable JavaScript into the unauthenticated /api/icon/getDynamicIcon endpoint, creating a reflected XSS. This is a second bypass of the fix for CVE-2026-29183 (fixed in v3.5.9). This vulnerability is fixed in 3.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.554%, percentile 47.681%, 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-pmc9-f5qr-2pcr>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31809>
- <https://github.com/siyuan-note/siyuan>
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.5.10>

---

Data as of 2026-12-05T10:02:37.112Z. 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
