# CVE-2026-23847: SiYuan Vulnerable to Reflected Cross-Site Scripting (XSS) via /api/icon/getDynamicIcon

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P`
- 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.31%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-19T19:46:08.980Z
- Modified: 2026-06-17T10:22:11.897Z
- Also known as: GHSA-w836-5gpm-7r93, GO-2026-4343
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

SiYuan is a personal knowledge management system. Versions prior to 3.5.4 are vulnerable to reflected cross-site scripting in /api/icon/getDynamicIcon due to unsanitized SVG input. The endpoint generates SVG images for text icons (type=8). The content query parameter is inserted directly into the SVG <text> tag without XML escaping. Since the response Content-Type is image/svg+xml, injecting unescaped tags allows breaking the XML structure and executing JavaScript. Version 3.5.4 patches the issue.]

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.5.4
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260118021606-5c0cc375b475
- b3log siyuan: before 3.5.4

## Every score

- GitHub_M: CVSS:4.0 2.1 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P`
- GitHub: CVSS:3.1 4.6 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P`
- 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-w836-5gpm-7r93> (exploit, advisory, patch, vendor-advisory, web)
- <https://github.com/siyuan-note/siyuan/issues/16844> (issue-tracking, patch, web)
- <https://github.com/siyuan-note/siyuan/commit/5c0cc375b47567e15edd2119066b09bb0aa18777> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23847> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-23847](https://www.cve.org/CVERecord?id=CVE-2026-23847), CVE Terms of Use, modified 2026-01-20
- GitHub Advisory Database: [GHSA-w836-5gpm-7r93](https://github.com/advisories/GHSA-w836-5gpm-7r93), CC-BY-4.0, modified 2026-02-03
- Go Vulnerability Database: [GO-2026-4343](https://pkg.go.dev/vuln/GO-2026-4343), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2026-23847](https://nvd.nist.gov/vuln/detail/CVE-2026-23847), Public domain, modified 2026-06-17

---

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