{"id":"CVE-2026-34605","summary":"SiYuan: Reflected XSS via SVG namespace prefix bypass in SanitizeSVG ( getDynamicIcon, unauthenticated )","details":"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 \u003cx:script xmlns:x=\"http://www.w3.org/2000/svg\"\u003e. 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.","aliases":["GHSA-73g7-86qr-jrg3"],"modified":"2026-04-02T13:30:41.824803Z","published":"2026-03-31T21:50:10.076Z","database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34605.json","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34605.json"},{"type":"REPORT","url":"https://github.com/siyuan-note/siyuan/issues/17246"},{"type":"WEB","url":"https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2"},{"type":"ADVISORY","url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-73g7-86qr-jrg3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34605"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/siyuan-note/siyuan","events":[{"introduced":"fd6526133bb318d534b8865998f8059ae765fdd1"},{"fixed":"29b104f338f9b0cdda0df852871a09a6268ced2f"}],"database_specific":{"versions":[{"introduced":"3.6.0"},{"fixed":"3.6.2"}]}}],"versions":["v3.6.0","v3.6.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-34605.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}