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
Daniel8d9e786c772e
diff --git a/kernel/model/import.go b/kernel/model/import.goindex d2b0b3f46b..f734fa3a39 100644--- a/kernel/model/import.go+++ b/kernel/model/import.go@@ -180,6 +180,13 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {blockIDs[n.ID] = newNodeIDn.ID = newNodeIDn.SetIALAttr("id", newNodeID)++ if icon := n.IALAttr("icon"); "" != icon {+ // XSS through emoji name https://github.com/siyuan-note/siyuan/issues/15034+ icon = util.FilterUploadEmojiFileName(icon)+ n.SetIALAttr("icon", icon)+ }+return ast.WalkContinue})tree.ID = tree.Root.ID