An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lock: XSS through emoji name https://github.com/siyuan-note/siyuan/issues/15034 https://github.com/siyuan-note/siyuan/pull/15041
Danielf95d3b99bd4a
diff --git a/kernel/model/box.go b/kernel/model/box.goindex 4c2c3c2726..9eb1102f4f 100644--- a/kernel/model/box.go+++ b/kernel/model/box.go@@ -127,10 +127,16 @@ func ListNotebooks() (ret []*Box, err error) {}id := dir.Name()+ icon := boxConf.Icon+ if strings.Contains(icon, ".") { // 说明是自定义图标+ // XSS through emoji name https://github.com/siyuan-note/siyuan/issues/15034+ icon = util.FilterUploadFileName(icon)+ }+box := &Box{ID: id,Name: boxConf.Name,- Icon: boxConf.Icon,+ Icon: icon,Sort: boxConf.Sort,SortMode: boxConf.SortMode,Closed: boxConf.Closed,