Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:lock: https://github.com/siyuan-note/siyuan/security/advisories/GHSA-25rp-h46x-2hjm

Daniel92696fd51f78
diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts
index 707aa28ce3..16ba0d1381 100644
--- a/app/src/dialog/tooltip.ts
+++ b/app/src/dialog/tooltip.ts
@@ -38,7 +38,7 @@ export const showTooltip = (
}
const messageElement = document.getElementById("tooltip");
messageElement.className = tooltipClass ? `tooltip tooltip--${tooltipClass}` : "tooltip";
- messageElement.innerHTML = message;
+ messageElement.innerHTML = window.DOMPurify.sanitize(message);
// 避免原本的 top 和 left 影响计算
messageElement.removeAttribute("style");
const position = target.getAttribute("data-position");