# CVE-2026-34605: SiYuan: Reflected XSS via SVG namespace prefix bypass in SanitizeSVG ( getDynamicIcon, unauthenticated )

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-31T21:50:10.076Z
- Modified: 2026-06-25T19:56:22.371Z
- Also known as: GHSA-73g7-86qr-jrg3, GO-2026-5201
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: >= 3.6.0, < 3.6.2
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260330031106-f09953afc57a
- b3log siyuan: from 3.6.0 before 3.6.2

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:3.1 6.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-73g7-86qr-jrg3> (exploit, advisory, vendor-advisory, web)
- <https://github.com/siyuan-note/siyuan/issues/17246> (issue-tracking, web)
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34605> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-34605](https://www.cve.org/CVERecord?id=CVE-2026-34605), CVE Terms of Use, modified 2026-04-01
- GitHub Advisory Database: [GHSA-73g7-86qr-jrg3](https://github.com/advisories/GHSA-73g7-86qr-jrg3), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5201](https://pkg.go.dev/vuln/GO-2026-5201), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-34605](https://nvd.nist.gov/vuln/detail/CVE-2026-34605), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-34605 · Whole record: https://cve.day/CVE-2026-34605.json · Rebuilt by cve.day 2026-11-25T22:59:17.652Z
