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-vm69-h85x-8p85

Daniel501571c2d22b
diff --git a/kernel/util/path.go b/kernel/util/path.go
index 100742cb42..11bbd9b58b 100644
--- a/kernel/util/path.go
+++ b/kernel/util/path.go
@@ -402,6 +402,9 @@ func IsSensitivePath(p string) bool {
"/lib",
"/srv",
"/tmp",
+ "/usr",
+ "/opt",
+ "/sbin",
}
for _, pre := range prefixes {
if strings.HasPrefix(toCheckPathLower, pre) {