{"id":"CVE-2026-23847","published":"2026-01-19T19:46:08Z","modified":"2026-01-20T14:37:42Z","title":"SiYuan Vulnerable to Reflected Cross-Site Scripting (XSS) via /api/icon/getDynamicIcon","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"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.]","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00314,"percentile":0.24968,"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-w836-5gpm-7r93","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/siyuan-note/siyuan/issues/16844","tags":["x_refsource_MISC"]},{"url":"https://github.com/siyuan-note/siyuan/commit/5c0cc375b47567e15edd2119066b09bb0aa18777","tags":["x_refsource_MISC"]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":4.99},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.5.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-20T14:37:01.409541Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260118021606-5c0cc375b475"],"patched":["0.0.0-20260118021606-5c0cc375b475"],"from":["GHSA-w836-5gpm-7r93","GO-2026-4343"],"provenance":"source"}],"summary":{"text":"SiYuan, a personal knowledge management system, contains a reflected cross-site scripting flaw in its /api/icon/getDynamicIcon endpoint, where the content parameter used to generate text icons is inserted unescaped into an SVG text element. An attacker can exploit this by tricking a user into opening a crafted link, which requires no authentication but does require user interaction, and the injected markup can break out of the SVG structure to run JavaScript in the victim's browser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:45Z"},"euvd":{"id":"EUVD-2026-3293","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-siyuan-note-siyuan-cve-2026-23645","children":[{"from":"CVE-2026-23847","to":"CVE-2026-29183","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/api/icon.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/5c0cc375b47567e15edd2119066b09bb0aa18777","https://github.com/siyuan-note/siyuan/commit/d68bd5a79391742b3cb2e14d892bdd9997064927"],"basis":"shared function","functions":["getDynamicIcon"]},{"kind":"similar","provenance":"machine","score":0.48,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2026-23847","to":"CVE-2026-66394","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/api/icon.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/5c0cc375b47567e15edd2119066b09bb0aa18777","https://github.com/siyuan-note/siyuan/commit/f08dee71ba8e087a395d74f121de11e6a997ef14"],"basis":"shared function","functions":["getDynamicIcon"]}]}],"packageHistory":[{"cve":"CVE-2025-21609","published":"2025-01-03","fixed":"0.0.0-20250103014808-d9887aeec1b2","kev":false},{"cve":"CVE-2026-23645","published":"2026-01-16","fixed":"0.0.0-20260116101155-11115da3d0de","kev":false,"link":{"from":"CVE-2026-23645","to":"CVE-2026-23847","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260116101155-11115da3d0de","toFixed":"0.0.0-20260118021606-5c0cc375b475","daysApart":3}]}},{"cve":"CVE-2026-23847","published":"2026-01-19","fixed":"0.0.0-20260118021606-5c0cc375b475","kev":false},{"cve":"CVE-2026-23850","published":"2026-01-19","fixed":"0.0.0-20260118092326-b2274baba2e1","kev":false,"link":{"from":"CVE-2026-23847","to":"CVE-2026-23850","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-20260118021606-5c0cc375b475","toFixed":"0.0.0-20260118092326-b2274baba2e1","daysApart":0}]}},{"cve":"CVE-2026-23851","published":"2026-01-19","fixed":"0.0.0-20260118092521-f8f4b517077b","kev":false},{"cve":"CVE-2026-29183","published":"2026-03-06","fixed":"0.0.0-20260304034809-d68bd5a79391","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}