Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/filebrowser/filebrowser/v2
  4. ›
  5. CVE-2026-35605

CVE-2026-35605: File Browser has an access rule bypass via HasPrefix without trailing separator in path matching

April 8, 2026

Hi,

The Matches() function in rules/rules.go uses strings.HasPrefix() without a trailing directory separator when matching paths against access rules. A rule for /uploads also matches /uploads_backup/, granting or denying access to unintended directories. Verified against v2.62.2 (commit 860c19d).

References

  • github.com/advisories/GHSA-5q48-q4fm-g3m6
  • github.com/filebrowser/filebrowser
  • github.com/filebrowser/filebrowser/pull/5889
  • github.com/filebrowser/filebrowser/security/advisories/GHSA-5q48-q4fm-g3m6
  • nvd.nist.gov/vuln/detail/CVE-2026-35605

Code Behaviors & Features

Detect and mitigate CVE-2026-35605 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.63.1

Fixed versions

  • 2.63.1

Solution

Upgrade to version 2.63.1 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/filebrowser/filebrowser/v2/CVE-2026-35605.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:17 +0000.