CVE-2021-46398: Cross-Site Request Forgery in Filebrowser
Summary
CVE-2021-46398: Cross-site request forgery in github.com/filebrowser/filebrowser/v2. Affects github.com/filebrowser/filebrowser/v2 versions < 2.18.0. Fixed in 2.18.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Filebrowser is a Go package that provides a web-based file manager with a user-friendly interface. It allows users to navigate and manage files and directories on a server. The package is vulnerable to a Cross-Site Request Forgery (CSRF) attack, which can be exploited to create a backdoor user with admin privileges and gain unauthorized access to the filesystem. This vulnerability affects versions prior to 2.18.0 of the package.
Vulnerability Detail
The CSRF vulnerability in Filebrowser allows attackers to trick authenticated users into performing unintended actions on their behalf. By sending a malicious HTML webpage to a victim, an attacker can create a backdoor user account with admin privileges. This can lead to unauthorized access to the filesystem and potential data breaches. The vulnerability has a CVSS score of 8.8, indicating a high severity level.
How To Fix
Latest published version: v2.63.23 as of 22 Oct 2026
go get github.com/filebrowser/filebrowser/v2@v2.63.23
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.18.0
This is the first release that contains the fix.
go get github.com/filebrowser/filebrowser/v2@v2.18.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to apply the fix by upgrading to the patched version of Filebrowser.
Conclusion
The CSRF vulnerability in Filebrowser can be exploited to create a backdoor user with admin privileges and gain unauthorized access to the filesystem. It is crucial to upgrade to version 2.18.0 or later to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for github.com/filebrowser/filebrowser/v2 →
FAQ
Filebrowser is a Go package that provides a web-based file manager with a user-friendly interface. It allows users to navigate and manage files and directories on a server.
A CSRF vulnerability allows attackers to trick authenticated users into performing unintended actions on their behalf. In the case of Filebrowser, it can be exploited to create a backdoor user with admin privileges.
The CSRF vulnerability in Filebrowser can lead to unauthorized access to the filesystem and potential data breaches. Attackers can create a backdoor user account with admin privileges, compromising the security of the system.
The CVSS score of this vulnerability is 8.8, indicating a high severity level.
To fix this vulnerability, it is recommended to upgrade to version 2.18.0 or later of Filebrowser. This version includes a fix for the CSRF vulnerability.
References
Related vulnerabilities
Recent vulnerabilities recorded for github.com/filebrowser/filebrowser/v2.