{"cve":"CVE-2026-32940","nvd":{"published":"2026-03-20T04:16:49.367","modified":"2026-06-17T10:36:36.113","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79","CWE-184"],"references":["https://github.com/advisories/GHSA-6865-qjcf-286f","https://github.com/siyuan-note/siyuan/commit/d01d561875d4f744e9f6232f1d4831e3642b8696","https://github.com/siyuan-note/siyuan/releases/tag/v3.6.1","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4mx9-3c2h-hwhg"],"products":["b3log:siyuan"],"source":"nvd","synced_at":"2026-10-19T22:26:19.218427112+00:00"},"epss":{"cve":"CVE-2026-32940","score":0.00308,"percentile":0.23626,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4mx9-3c2h-hwhg","url":"https://osv.dev/vulnerability/GHSA-4mx9-3c2h-hwhg","summary":"SiYuan has a SanitizeSVG bypass via data:text/xml in getDynamicIcon (incomplete fix for CVE-2026-29183)","modified":"2026-04-02T13:29:25.198828849Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan","purl":"pkg:golang/github.com/siyuan-note/siyuan","ranges":["<=0.0.0-20260313024916-fd6526133bb3"],"fixed":[]}]},{"id":"GO-2026-4721","url":"https://osv.dev/vulnerability/GO-2026-4721","summary":"SiYuan has a SanitizeSVG bypass via data:text/xml in getDynamicIcon (incomplete fix for CVE-2026-29183) in github.com/siyuan-note/siyuan","modified":"2026-03-26T21:03:32.290282Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan","purl":"pkg:golang/github.com/siyuan-note/siyuan","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}