{"id":"CVE-2026-32940","published":"2026-03-20T03:33:43Z","modified":"2026-03-20T19:53:35Z","title":"SiYuan has a SanitizeSVG bypass via data:text/xml in getDynamicIcon (incomplete fix for CVE-2026-29183)","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00308,"percentile":0.23521,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4mx9-3c2h-hwhg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/siyuan-note/siyuan/commit/d01d561875d4f744e9f6232f1d4831e3642b8696","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-6865-qjcf-286f","tags":["x_refsource_MISC"]},{"url":"https://github.com/siyuan-note/siyuan/releases/tag/v3.6.1","tags":["x_refsource_MISC"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":4.7},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.6.1"]}],"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan","vulnerableRanges":["<=0.0.0-20260313024916-fd6526133bb3","all versions"],"patched":[],"from":["GHSA-4mx9-3c2h-hwhg","GO-2026-4721"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-13523","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-siyuan-note-siyuan-cve-2026-29183","parents":[{"from":"CVE-2026-29183","to":"CVE-2026-32940","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-6865-qjcf-286f","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-4mx9-3c2h-hwhg","via":"reference","url":"https://github.com/advisories/GHSA-6865-qjcf-286f"},{"kind":"osv-related","provenance":"source","id":"GO-2026-4721","via":"reference","url":"https://github.com/advisories/GHSA-6865-qjcf-286f"},{"kind":"similar","provenance":"machine","score":0.4,"basis":"same product + CWE + description similarity"}]}]}}