CVE-2025-53826
criticalpriority · track · 39EPSS 0.006 · 46 %ileEUUSEPSS · scored 2026-10-26
File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename, and edit files. In version 2.39.0, File Browser’s authentication system issues long-lived JWT tokens that remain valid even after the user logs out. As of time of publication, no known patches exist.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 6.6–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (6)
Products and version ranges known to be affected.
- Go github.com/filebrowser/filebrowser/v2≤ 2.39.0osvUSpkg:golang/github.com/filebrowser/filebrowser/v2
- Go github.com/filebrowser/filebrowser/v2all versionsosvUSpkg:golang/github.com/filebrowser/filebrowser/v2
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-7xwp-2cpp-p8r7File Browser’s insecure JWT handling can lead to session replay attacks after logout2025-07-16ghsa · osvUS
### Summary File Browser’s authentication system issues long-lived JWT tokens that remain valid even after the user logs out. Please refer to the CWE's listed in this report for further reference and system standards. In summary, the main issue is: - Tokens remain valid after logout (session replay attacks) In this report, I used docker as the documentation instruct: ``` docker run \ -v filebrowser_data:/srv \ -v filebrowser_database:/database \ -v filebrowser_config:/config \ -p 8080:80 \ filebrowser/filebrowser ``` ### Details **Issue: Tokens remain valid after logout (session replay attacks)** After logging in and receiving a JWT token, the user can explicitly "log out." However, this action does not invalidate the issued JWT. Any captured token can be replayed post-logout until it expires naturally. The backend does not track active sessions or invalidate existing tokens on logout. Login request: ``` POST /api/login HTTP/1.1 Host: machine.local:8090 Content-Length: 69 {"username":"admin","password":"password-here","recaptcha":""} ``` The check found in the code `https://github.com/filebrowser/filebrowser/blob/master/http/auth.go` is not enough. There is no server-side blacklist or token invalidation on logout. Token renewal and validity only depends on expiry and user store timestamps: ``` expired := !tk.VerifyExpiresAt(time.Now().Add(time.Hour), true) updated := tk.IssuedAt != nil && tk.IssuedAt.Unix() < d.store.Users.LastUpdate(tk.User.ID) ``` ### PoC **Issue: Tokens remain valid after logout (session replay attacks)** - Login and capture the generate JWT. Eg. the http request: ``` POST /api/login HTTP/1.1 Host: machine.local:8090 Content-Length: 69 {"username":"admin","password":"password-here","recaptcha":""} ``` - Logout in the dashboard. And then try to use the old generated JWT to access any authenticated endpoint eg: ``` GET /api/resources HTTP/1.1 Host: machine.local:8090 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 X-Auth: Old-JWT-token-here Content-Length: 173 Accept: */* Referer: http://machine.local:8090/files/ Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9 Content-Length: 26 Connection: keep-alive ``` ### Impact - A valid JWT remains active after user logout. - If stolen, tokens persist access indefinitely until expiry. - Violates OWASP Top 10 A2:2021 - Broken Authentication. ### Recommendations - Read all CWE's attached in this report - Invalidate JWTs on logout via session store / token blacklist. - Reduce JWT ExpiresAt where possible or use short-lived + refresh tokens.
- GO-2025-3812File Browser’s insecure JWT handling can lead to session replay attacks after logout in github.com/filebrowser/filebrowser2025-07-28vendor · osvUS
File Browser’s insecure JWT handling can lead to session replay attacks after logout in github.com/filebrowser/filebrowser
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://github.com/filebrowser/filebrowser/issues/5216cnnvd
- https://github.com/filebrowser/filebrowser/releasesPatchcnnvd
- https://github.com/filebrowser/filebrowser/security/advisories/GHSA-7xwp-2cpp-p8r7cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2025-53826cnnvd
- https://github.com/filebrowser/filebrowser/issues/5216enisa_euvd
- https://github.com/filebrowser/filebrowser/security/advisories/GHSA-7xwp-2cpp-p8r7enisa_euvd
- https://github.com/filebrowser/filebrowser/issues/5216Issue Trackingnvd
- https://github.com/filebrowser/filebrowser/security/advisories/GHSA-7xwp-2cpp-p8r7ExploitVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan