MediumGHSA-68j5-4m99-w9w9CVE-2026-32761GO-2026-4738

File Browser has an Authorization Policy Bypass in Public Share Download Flow

Published 18 Mar 2026 · Updated 3 Dec 2026

Affected package

Affected
<2.62.0
Fixed in
2.62.0
Update to the fixed version for your release line, for example:go get github.com/filebrowser/filebrowser/v2@v2.62.0

We confirm your address first. See our privacy policy.

Which github.com/filebrowser/filebrowser/v2 does your project really install?

Drop your go.mod hereWe find the exact github.com/filebrowser/filebrowser/v2 version you install, even when another package pulls it in, and tell you if it’s affected and what to run. Free, no sign-up.

Works for private projects: the file is read in memory to run the scan and then dropped. Also reads other package files.

Public repo?

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

Details

Summary

A permission enforcement flaw allows users without download privileges (download=false) to still expose and retrieve file content via public share links when they retain share privileges (share=true). This bypasses intended access control policy and enables unauthorized data exfiltration to unauthenticated users. Where download restrictions are used for data-loss prevention or role separation.

Details

The backend applies inconsistent authorization checks across download paths:

  • Direct raw download correctly enforces Perm.Download:
  • [raw.go](filebrowser/http/raw.go:82)
  • Share creation only enforces Perm.Share:
  • [share.go](filebrowser/http/share.go:21)
  • Public share/download handlers serve shared content without verifying owner Perm.Download:
  • public.go(filebrowser/http/public.go:18)
  • public.go(filebrowser/http/public.go:116)

As a result, a user who is blocked from direct downloads can create a share and obtain the same file via /api/public/dl/<hash>.

PoC

1. Create a non-admin user with:

  • perm.share = true
  • perm.download = false

2. Login as that user and upload a PDF file:

  • POST /api/resources/nodl_secret_<rand>.pdf with Content-Type: application/pdf

3. Verify direct raw download is denied:

  • GET /api/raw/nodl_secret_<rand>.pdf
  • Expected and observed: 202 Accepted (blocked)

4. Create share for same file:

  • POST /api/share/nodl_secret_<rand>.pdf
  • Observed: 200, response includes hash (example: qxfK3JMG)

5. Download publicly without authentication:

  • GET /api/public/dl/<hash>
  • Observed (vulnerable): 200, Content-Type: application/pdf, and PDF bytes are returned

Live evidence captured (March 1, 2026):

  • create user: 201
  • create file: 200
  • direct /api/raw: 202 Accepted
  • create share: 200
  • public download /api/public/dl/mxK-ppZb: 200
  • public download content-type: application/pdf
  • public download body length: 327 bytes

Impact

This is an access control / authorization policy bypass vulnerability.

  • Who can exploit: Any authenticated user granted share=true but denied download.
  • Who is impacted: Operators and organizations relying on download restrictions to prevent data export.
  • What can happen: Restricted users can still distribute and retrieve files publicly, including unauthenticated access through share URLs.

Is GHSA-68j5-4m99-w9w9 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/filebrowser/filebrowser/v2, and gives you the command that fixes it.

More advisories for github.com/filebrowser/filebrowser/v2

  • LowCVE-2026-61874File Browser: Trailing-slash directory deletion leaves public shares active for recreated paths in github.com/filebrowser/filebrowser/v2 · 23 Nov 2026
  • LowCVE-2026-61874File Browser: Trailing-slash directory deletion leaves public shares active for recreated paths · 13 Nov 2026
  • LowCVE-2026-55668File Browser: ScopedFs follows a dangling symlink on write, letting a scoped user create files outside their scope in github.com/filebrowser/filebrowser · 22 Jul 2026
  • LowCVE-2026-55667File Browser: Out-of-scope file deletion by a Create-only scoped user via symlink-following RemoveAll in upload failure-cleanup in github.com/filebrowser/filebrowser · 22 Jul 2026
  • LowCVE-2026-62685File Browser: Colliding username normalization gives two users the same home directory in github.com/filebrowser/filebrowser · 22 Jul 2026
  • LowCVE-2026-62684File Browser: Share API exposes the password hash and bypass token in github.com/filebrowser/filebrowser · 22 Jul 2026
All 89 advisories for github.com/filebrowser/filebrowser/v2

References

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