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

CVE-2026-62685: File Browser: Colliding username normalization gives two users the same home directory

July 20, 2026

FileBrowser confines each user to a scope: a home directory that acts as the boundary for everything they can read or write. When self-registration and automatic home-directory creation are both enabled (Signup=true and CreateUserDir=true), a new user’s scope is built from their username after it passes through cleanUsername(). That function rewrites the name: it strips .. and replaces every character outside 0-9A-Za-z@_\-. with -.

The problem is that this rewrite is many-to-one: different usernames can produce the same result, and FileBrowser never checks whether the resulting scope is already taken. So team/one, team one, and team-one all collapse to the same directory name, and whoever registers second is handed the same home directory as the first user instead of an isolated one.

This breaks per-user isolation. An attacker can pick a username that normalizes onto a victim’s directory (for example registering alice/ or al..ice to land in alice’s home) and gain full read and write access to that victim’s files. Because username uniqueness is enforced on the raw name, both accounts coexist normally and neither user is warned that they share storage.

References

  • github.com/advisories/GHSA-7rc3-g7h6-22m7
  • github.com/filebrowser/filebrowser/commit/883a36f02fcb69566a8628cb47f18fdc73348387
  • github.com/filebrowser/filebrowser/releases/tag/v2.63.17
  • github.com/filebrowser/filebrowser/security/advisories/GHSA-7rc3-g7h6-22m7
  • nvd.nist.gov/vuln/detail/CVE-2026-62685

Code Behaviors & Features

Detect and mitigate CVE-2026-62685 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.17

Fixed versions

  • 2.63.17

Solution

Upgrade to version 2.63.17 or above.

Impact 8.1 HIGH

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

Learn more about CVSS

Weakness

  • CWE-647: Use of Non-Canonical URL Paths for Authorization Decisions
  • CWE-706: Use of Incorrectly-Resolved Name or Reference

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 08 Aug 2026 00:18:39 +0000.