CVE-2026-32940 json
SiYuan has a SanitizeSVG bypass via data:text/xml in getDynamicIcon (incomplete fix for CVE-2026-29183)
published 2026-03-17 7 mo ago modified 2026-06-17 4 mo ago also GHSA-4mx9-3c2h-hwhg , GO-2026-4721 , EUVD-2026-13523
- cvss
- 9.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 24%
- public exploits
- 0
- none known
Summary
SiYuan is a personal knowledge management system. In versions 3.6.0 and below, SanitizeSVG has an incomplete blocklist — it blocks data:text/html and data:image/svg+xml in href attributes but misses data:text/xml and data:application/xml, both of which can render SVG with JavaScript execution. The unauthenticated /api/icon/getDynamicIcon endpoint serves user-controlled input (via the content parameter) directly into SVG markup using fmt.Sprintf with no escaping, served as Content-Type: image/svg+xml. This creates a click-through XSS: a victim navigates to a crafted URL, sees an SVG with an injected link, and clicking it triggers JavaScript via the bypassed MIME types. The attack requires direct navigation to the endpoint or <object>/<embed> embedding, since <img> tag rendering in the frontend doesn't allow interactive links. This issue has been fixed in version 3.6.1.
Patch / fix
- b3log siyuan 3.6.1
- govulncheck-vulndb openSUSE Leap 15.6 0.0.20260326T203309-150000.1.155.2
suse advisories SUSE-SU-2026:1135-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
opensuse advisories openSUSE-SU-2026:21483-1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 7 mo ago
Exploit prediction
0.32% chance of exploitation in the next 30 days, higher than 24% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4mx9-3c2h-hwhg referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/advisories/GHSA-6865-qjcf-286f referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/siyuan-note/siyuan | <=0.0.0-20260313024916-fd6526133bb3 all versions |
no fix listed |
Affected products
- siyuan-note siyuan
Classification
References
-
github.com
/siyuan-note/siyuan/commit/d01d561875d4f744e9f6232f1d4831e3642b8696
web, patch
-
github.com
/siyuan-note/siyuan/security/advisories/GHSA-4mx9-3c2h-hwhg
web, exploit, mitigation, vendor-advisory, advisory
-
github.com
/advisories/GHSA-6865-qjcf-286f
advisory, exploit, third-party-advisory, web
-
github.com
/siyuan-note/siyuan/releases/tag/v3.6.1
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-32940
advisory
-
github.com
/siyuan-note/siyuan
package
Sources
- CVE List CVE-2026-32940
- GitHub Advisory GHSA-4mx9-3c2h-hwhg
- NVD CVE-2026-32940
- OSV GO-2026-4721
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.