CVE-2026-54097 — Vulnerability in filebrowser/filebrowser/v2
File Browser: Cross-user unauthorized share-link deletion via unbounded prefix match in DeleteWithPathPrefix
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.45%). Schedule for your next planned update.
Does your project use an affected github.com/filebrowser/filebrowser/v2 version?
Paste your go.sum to check it for CVE-2026-54097 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
A low-privileged authenticated user of filebrowser (with create + delete permissions in their own isolated scope) can silently destroy share-link records belonging to any other user — including the administrator — by performing a legitimate DELETE on a file in their own directory whose logical path happens to be a byte-prefix of another user's stored share.Link.Path. The file contents of the victim are not exposed, but the victim's share links are irrevocably wiped.
Details
resourceDeleteHandler in http/resource.go cleans up any share records that reference a deleted file by calling:
// http/resource.go
err = d.store.Share.DeleteWithPathPrefix(file.Path)
file.Path here is the logical path from the URL of the deleting user's request (e.g. /a), not the absolute filesystem path. It is passed as-is to the bolt backend:
// storage/bolt/share.go
func (s shareBackend) DeleteWithPathPrefix(pathPrefix string) error {
var links []share.Link
if err := s.db.Prefix("Path", pathPrefix, &links); err != nil {
return err
}
for _, link := range links {
err = errors.Join(err, s.db.DeleteStruct(&share.Link{Hash: link.Hash}))
}
return err
}
Why the design contradicts this behavior. share.Link carries a UserID field and the application elsewhere treats shares as per-user owned resources. shareDeleteHandler explicitly enforces link.UserID != d.user.ID && !d.user.Perm.Admin → 403. The file-deletion side-effect path is the only location that bypasses this rule.
Impact
- Integrity: unauthorized deletion of share-link metadata belonging to arbitrary users, including administrators.
- Availability: effective denial-of-service of the share-link feature — a cooperating (or malicious) low-priv user can wipe the bulk of existing share links by iterating a short set of one- and two-character prefixes.
Advisory Timeline
- First published June 12, 2026 (167 days ago).
- Last revised July 21, 2026 — 39 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/filebrowser/filebrowser/v2@v2.63.6
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Go (2).
| Package | Fixed In |
|---|---|
| github.com/filebrowser/filebrowser/v2 Go · Affected: All versions | 2.63.6 |
| github.com/filebrowser/filebrowser Go · Affected: All versions | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-639Insecure Direct Object Reference (IDOR)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/filebrowser/filebrowser/security/advisories/GHSA-5ww9-jg6q-38r7WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-54097ADVISORY
- https://github.com/filebrowser/filebrowser/commit/0231b7ebdfbe77a6c54027d30c4856c3fd81ee4dWEB
- https://github.com/filebrowser/filebrowserPACKAGE
- https://github.com/filebrowser/filebrowser/releases/tag/v2.63.6WEB
Frequently Asked Questions
- What is CVE-2026-54097?
- File Browser: Cross-user unauthorized share-link deletion via unbounded prefix match in DeleteWithPathPrefix. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2026-54097?
- CVE-2026-54097 affects github.com/filebrowser/filebrowser/v2 and github.com/filebrowser/filebrowser. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-54097 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 31% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2025-52902
filebrowser allows Stored Cross-Site Scripting through the Markdown preview function in github.com/filebrowser/filebrowser
- CVE-2025-52900
filebrowser Sets Insecure File Permissions in github.com/filebrowser/filebrowser
- CVE-2026-54091
File Browser has incorrect access control for public directory shares via rule path rebasing in github.com/filebrowser/filebrowser
- CVE-2026-35585
File Browser has a Command Injection via Hook Runner in github.com/filebrowser/filebrowser
- CVE-2026-35604
File Browser share links remain accessible after Share/Download permissions are revoked in github.com/filebrowser/filebrowser
- CVE-2026-54092
File Browser has a DoS Vulnerability via Public Login API in github.com/filebrowser/filebrowser
- CVE-2026-34528
File Browser's Signup Grants Execution Permissions When Default Permissions Includes Execution in github.com/filebrowser/filebrowser
- CVE-2026-34530
File Browser vulnerable to Stored Cross-site Scripting via text/template branding injection in github.com/filebrowser/filebrowser