CVE-2026-23847 SiYuan Vulnerable to Reflected Cross-Site Scripting (XSS) via /api/icon/getDynamicIcon
LowCVSS 2.1
EPSS 0.41%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.]
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| b3log siyuan | < 3.5.4 | 3.5.4 | Fixed |
| siyuan-note github.com/siyuan-note/siyuan/kernel(Go) | < 0.0.0-20260118021606-5c0cc375b475 | 0.0.0-20260118021606-5c0cc375b475 | Fixed |
| siyuan-note siyuan | = < 3.5.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| siyuan-note github.com/siyuan-note/siyuan/kernel(Go) | < 0.0.0-20260118021606-5c0cc375b475 | 0.0.0-20260118021606-5c0cc375b475 |
| siyuan-note siyuan | = < 3.5.4 | No fix listed |
| b3log siyuan | < 3.5.4 | 3.5.4 |
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-w836-5gpm-7r93 exploit patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/siyuan-note/siyuan/issues/16844 issue-tracking patch
- https://github.com/siyuan-note/siyuan/commit/5c0cc375b47567e15edd2119066b09bb0aa18777 patch
- github.com product
- github.com