{"id":"CVE-2026-23645","published":"2026-01-16T19:20:06Z","modified":"2026-01-16T21:37:58Z","title":"SiYuan Vulnerable to Stored Cross-Site Scripting (XSS) via Unrestricted SVG File Upload","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan is self-hosted, open source personal knowledge management software. Prior to 3.5.4-dev2, a Stored Cross-Site Scripting (XSS) vulnerability exists in SiYuan Note. The application does not sanitize uploaded SVG files. If a user uploads and views a malicious SVG file (e.g., imported from an untrusted source), arbitrary JavaScript code is executed in the context of their authenticated session. This vulnerability is fixed in 3.5.4-dev2.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0028,"percentile":0.20728,"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-pcjq-j3mq-jv5j","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/11115da3d0de950593ee4ce375cf7f9018484388","tags":["x_refsource_MISC"]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":4.15},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.5.4-dev2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-16T21:37:47.881335Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260116101155-11115da3d0de"],"patched":["0.0.0-20260116101155-11115da3d0de"],"from":["GHSA-pcjq-j3mq-jv5j","GO-2026-4324"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-2863","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-siyuan-note-siyuan-cve-2026-23645","children":[{"from":"CVE-2026-23645","to":"CVE-2026-100641","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/appearance/langs/en_US.json","app/appearance/langs/es_ES.json","app/appearance/langs/fr_FR.json","app/appearance/langs/zh_CHT.json","app/appearance/langs/zh_CN.json"],"commits":["https://github.com/siyuan-note/siyuan/commit/1ecb1c07de497ff03b585536fe5579291754d96b","https://github.com/siyuan-note/siyuan/commit/48c354e7de130aaada9d7120125bbc768344fd3b","https://github.com/siyuan-note/siyuan/commit/11115da3d0de950593ee4ce375cf7f9018484388"],"basis":"rarely changed file"}]},{"from":"CVE-2026-23645","to":"CVE-2026-29183","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/util/misc.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/11115da3d0de950593ee4ce375cf7f9018484388","https://github.com/siyuan-note/siyuan/commit/d68bd5a79391742b3cb2e14d892bdd9997064927"],"basis":"shared function","functions":["ReplaceStr"]}]},{"from":"CVE-2026-23645","to":"CVE-2026-82651","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/server/serve.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/11115da3d0de950593ee4ce375cf7f9018484388","https://github.com/siyuan-note/siyuan/commit/035bf9a8c311c6f8468f2f1054b4d5e1711787e2"],"basis":"shared function","functions":["serveAssets"]}]}],"packageHistory":[{"cve":"CVE-2025-21609","published":"2025-01-03","fixed":"0.0.0-20250103014808-d9887aeec1b2","kev":false,"link":{"from":"CVE-2025-21609","to":"CVE-2026-23645","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20250103014808-d9887aeec1b2","toFixed":"0.0.0-20260116101155-11115da3d0de","daysApart":378}]}},{"cve":"CVE-2026-23645","published":"2026-01-16","fixed":"0.0.0-20260116101155-11115da3d0de","kev":false},{"cve":"CVE-2026-23847","published":"2026-01-19","fixed":"0.0.0-20260118021606-5c0cc375b475","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-23850","published":"2026-01-19","fixed":"0.0.0-20260118092326-b2274baba2e1","kev":false},{"cve":"CVE-2026-23851","published":"2026-01-19","fixed":"0.0.0-20260118092521-f8f4b517077b","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}