CVE-2021-46398: Cross-Site Request Forgery in Filebrowser

Summary

05/02/2022
Yes i
High
8.8

CVE-2021-46398: Cross-Site Request Forgery in Filebrowser. Affects github.com/filebrowser/filebrowser/v2 versions < 2.18.0. Fixed in 2.18.0. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 on a server through a web browser. 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 Cross-Site Request Forgery (CSRF) vulnerability in Filebrowser allows an attacker to trick a victim into performing unintended actions on their behalf. By sending a malicious HTML webpage to the victim, the attacker can create a backdoor user with admin privileges. This unauthorized user can then access the filesystem and potentially perform malicious activities. 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 update Filebrowser to the latest version to mitigate the risk.

Conclusion

The Cross-Site Request Forgery (CSRF) vulnerability in Filebrowser allows attackers to create a backdoor user with admin privileges and gain unauthorized access to the filesystem. To mitigate this risk, it is crucial to update Filebrowser to version 2.18.0 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/filebrowser/filebrowser/v2 →

Share this vulnerability

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 on a server through a web browser.

A CSRF vulnerability allows an attacker to trick a victim into performing unintended actions on their behalf. In the case of Filebrowser, it can be exploited to create a backdoor user with admin privileges and gain unauthorized access to the filesystem.

The vulnerability allows an attacker to create a backdoor user with admin privileges, potentially leading to unauthorized access to the filesystem and the ability to perform malicious activities.

To fix this vulnerability, it is recommended to upgrade Filebrowser to version 2.18.0 or later. This version includes a fix for the CSRF vulnerability.

There is no known workaround for this vulnerability. It is essential to update Filebrowser to the latest version to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/filebrowser/filebrowser/v2.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback