Skip to content

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

:lock: Arbitrary file reading vulnerability https://github.com/siyuan-note/siyuan/issues/16860

Danielf8f4b517077b
diff --git a/kernel/util/path.go b/kernel/util/path.go
index 2b5a81957f..6fae2db3a4 100644
--- a/kernel/util/path.go
+++ b/kernel/util/path.go
@@ -416,6 +416,7 @@ func IsSensitivePath(p string) bool {
"passwd": {},
"shadow": {},
"pgpass": {},
+ "hosts": {},
"credentials": {}, // 如 aws credentials
"config.json": {}, // docker config.json 可能含 token
}