SiYuan has an Incomplete Fix for IsSensitivePath Denylist Allows File Read from /opt, /usr, /home
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in github.com/siyuan-note/siyuan/kernel 3.6.2.
SiYuan is a personal knowledge management system. Prior to version 3.6.2, the `IsSensitivePath()` function in `kernel/util/path.go` uses a denylist approach that was recently expanded (GHSA-h5vh-m7fg-w5h6, commit 9914fd1) but remains incomplete. Multiple security-relevant Linux directories are not blocked, including `/opt` (application data), `/usr` (local configs/binaries), `/home` (other users), `/mnt` and `/media` (mounted volumes). The `globalCopyFiles` and `importStdMd` endpoints rely on `IsSensitivePath` as their primary defense against reading files outside the workspace. Version 3.6.2 contains an updated fix.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| siyuan-note | <3.6.2 | ||
| go: github.com/siyuan-note/siyuan/kernel | <3.6.2, <=3.6.1 | 3.6.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in github.com/siyuan-note/siyuan/kernel (Go), strongest first
Embed
A live severity badge for an advisory, README or ticket