github.com/siyuan-note/siyuan/kernel
Affected
- introduced
0, last affected0.0.0-20260126094835-d5d10dd41b0c(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: CVE-2026-25992, GO-2026-4386
SiYuan File Read API Case Sensitivity Bypass can Lead to Path Traversal
File Read Interface Case Bypass Vulnerability
Vulnerability Name
File Read Interface Case Bypass Vulnerability
Overview
The /api/file/getFile endpoint uses case-sensitive string equality checks to block access to sensitive files.
On case-insensitive file systems such as Windows, attackers can bypass restrictions using mixed-case paths
and read protected configuration files.
Impact
Trigger Conditions
/api/file/getFile (via CheckAuth or Token injection in published services).PoC (Generic Example)
After enabling publication:
Request:
POST /api/file/getFile
Content-Type: application/json
{"path":"cOnf/conf.json"}
Expected Result:
Root Cause
Path comparison uses strict case-sensitive string matching, without case normalization or identical file validation.
Fix Recommendations
os.SameFile.Notes
Solution Commit399a38893e8719968ea2511e177bb53e09973fa6
High Basis: The source's own band: HIGH
0, last affected 0.0.0-20260126094835-d5d10dd41b0c (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0