{"id":"CVE-2026-34605","published":"2026-03-31T21:50:10Z","modified":"2026-04-01T18:57:40Z","title":"SiYuan: Reflected XSS via SVG namespace prefix bypass in SanitizeSVG ( getDynamicIcon, unauthenticated )","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan is a personal knowledge management system. From version 3.6.0 to before version 3.6.2, the SanitizeSVG function introduced in version 3.6.0 to fix XSS in the unauthenticated /api/icon/getDynamicIcon endpoint can be bypassed by using namespace-prefixed element names such as <x:script xmlns:x=\"http://www.w3.org/2000/svg\">. The Go HTML5 parser records the element's tag as \"x:script\" rather than \"script\", so the tag check passes it through. The SVG is served with Content-Type: image/svg+xml and no Content Security Policy; when a browser opens the response directly, its XML parser resolves the prefix to the SVG namespace and executes the embedded script. This issue has been patched in version 3.6.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00615,"percentile":0.43739,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-73g7-86qr-jrg3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/siyuan-note/siyuan/issues/17246","tags":["x_refsource_MISC"]},{"url":"https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2","tags":["x_refsource_MISC"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":8.75},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.02}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-34605","name":"SiYuan Note - Cross-Site Scripting","severity":"medium","path":"http/cves/2026/CVE-2026-34605.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-34605.yaml"}],"provenance":"source"},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":[">= 3.6.0, < 3.6.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-01T18:57:28.582022Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260330031106-f09953afc57a"],"patched":["0.0.0-20260330031106-f09953afc57a"],"from":["GHSA-73g7-86qr-jrg3","GO-2026-5201"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-17687","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-33067","published":"2026-03-20","fixed":"0.0.0-20260317012524-fe4523fff2c8","kev":false},{"cve":"CVE-2026-56397","published":"2026-06-21","fixed":"0.0.0-20260317012524-fe4523fff2c8","kev":false},{"cve":"CVE-2026-34585","published":"2026-03-31","fixed":"0.0.0-20260329142331-918d1bd9f967","kev":false,"link":{"from":"CVE-2026-34585","to":"CVE-2026-34605","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260329142331-918d1bd9f967","toFixed":"0.0.0-20260330031106-f09953afc57a","daysApart":0}]}},{"cve":"CVE-2026-34605","published":"2026-03-31","fixed":"0.0.0-20260330031106-f09953afc57a","kev":false},{"cve":"CVE-2026-39846","published":"2026-04-07","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false,"link":{"from":"CVE-2026-34605","to":"CVE-2026-39846","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260330031106-f09953afc57a","toFixed":"0.0.0-20260407035653-2f416e5253f1","daysApart":7}]}},{"cve":"CVE-2026-40107","published":"2026-04-09","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false,"link":{"from":"CVE-2026-34605","to":"CVE-2026-40107","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260330031106-f09953afc57a","toFixed":"0.0.0-20260407035653-2f416e5253f1","daysApart":9}]}},{"cve":"CVE-2026-40259","published":"2026-04-16","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false,"link":{"from":"CVE-2026-34605","to":"CVE-2026-40259","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260330031106-f09953afc57a","toFixed":"0.0.0-20260407035653-2f416e5253f1","daysApart":16}]}}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}