File Browser has an Authentication Bypass in User Password Update
Description
File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit files. Prior to 2.57.1, a case-sensitivity flaw in the password validation logic allows any authenticated user to change their password (or an admin to change any user's password) without providing the current password. By using Title Case field name "Password" instead of lowercase "password" in the API request, the current_password verification is completely bypassed. This enables account takeover if an attacker obtains a valid JWT token through XSS, session hijacking, or other means. This vulnerability is fixed in 2.57.1.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/filebrowser/filebrowser/v2Go | < 2.57.1 | 2.57.1 |
Affected products
1- Range: < 2.57.1
Patches
1ff2f00498cfffix: normalize fields capitalization
1 file changed · +2 −1
http/users.go+2 −1 modified@@ -7,6 +7,7 @@ import ( "net/http" "sort" "strconv" + "strings" "github.com/gorilla/mux" "golang.org/x/text/cases" @@ -190,7 +191,7 @@ var userPutHandler = withSelfOrAdmin(func(w http.ResponseWriter, r *http.Request } for _, field := range req.Which { - if _, ok := sensibleFields[field]; ok { + if _, ok := sensibleFields[strings.ToLower(field)]; ok { if !users.CheckPwd(req.CurrentPassword, d.user.Password) { return http.StatusBadRequest, fberrors.ErrCurrentPasswordIncorrect }
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-hxw8-4h9j-hq2rghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-25889ghsaADVISORY
- github.com/filebrowser/filebrowser/commit/ff2f00498cff151e2fb1f5f0b16963bf33c3d6d4ghsax_refsource_MISCWEB
- github.com/filebrowser/filebrowser/releases/tag/v2.57.1ghsax_refsource_MISCWEB
- github.com/filebrowser/filebrowser/security/advisories/GHSA-hxw8-4h9j-hq2rghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.