CVE-2026-34530 File Browser is vulnerable to Stored Cross-Site Scripting via text/template branding injection
An admin can inject persistent JavaScript via branding fields, allowing code execution for all visitors, including unauthenticated users.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-34530?
CVE-2026-34530 is a medium-severity cross-site scripting vulnerability in filebrowser, published on 1 Apr 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
File Browser is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory. Prior to version 2.62.2, the SPA index page in File Browser is vulnerable to Stored Cross-Site Scripting (XSS) via admin-controlled branding fields. An admin who sets branding.name to a malicious payload injects persistent JavaScript that executes for ALL visitors, including unauthenticated users. This issue has been patched in version 2.62.2.
Weakness: CWE-79
Which versions are affected by CVE-2026-34530?
4 open source packages ship an affected version, including github.com/filebrowser/filebrowser/v2 and github.com/filebrowser/filebrowser. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/filebrowser/filebrowser/v2 Go | All versions | 2.62.2 |
github.com/filebrowser/filebrowser/v2 Go | All versions | 2.62.2 |
github.com/filebrowser/filebrowser/v2 Go | All versions | 2.62.2 |
github.com/filebrowser/filebrowser Go | All versions | None |
Products include Filebrowser Filebrowser.
How do I fix CVE-2026-34530?
Upgrade github.com/filebrowser/filebrowser/v2 to 2.62.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-34530 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34530 exists.
Other vulnerabilities in filebrowser
- CVE-2026-32760 File Browser Self Registration Grants Any User Admin Access When Default Permissions Include Admin
- CVE-2026-29188 File Browser: TUS Delete Endpoint Bypasses Delete Permission Check
- CVE-2023-39612 Cross-site scripting in n/a
- CVE-2026-30934 FileBrowser Quantum: Stored XSS in public share page via unsanitized share metadata (text/template misuse)
- CVE-2021-46398 Cross-Site Request Forgery in Filebrowser
Sources
Also known as GHSA-xfqj-3vmx-63wv, GO-2026-5754.