CVE-2026-34530 File Browser is vulnerable to Stored Cross-Site Scripting via text/template branding injection

Medium 6.9 Published Updated

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.

PackageAffectedFixed in
github.com/filebrowser/filebrowser/v2 GoAll versions2.62.2
github.com/filebrowser/filebrowser/v2 GoAll versions2.62.2
github.com/filebrowser/filebrowser/v2 GoAll versions2.62.2
github.com/filebrowser/filebrowser GoAll versionsNone

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.

Sources

Also known as GHSA-xfqj-3vmx-63wv, GO-2026-5754.

Is CVE-2026-34530 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free