CVE-2026-30934: FileBrowser Quantum Cross-Site Scripting Vulnerability
HIGHCVE-2026-30934 is a HIGH (CVSS 8.9) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting FileBrowser Quantum libraries in the Go ecosystem. The issue involves stored xss in public share page via unsanitized share metadata (text/template misuse). Remediation is available by upgrading affected packages to version 0.0.0-20260307130210-09713b32a5f6.
CVE-2026-30934 at a Glance
Security Impact
CVSS: 8.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L).
How to Fix CVE-2026-30934
To remediate this vulnerability, upgrade all affected FileBrowser Quantum dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/gtsteffaniak/filebrowser to 0.0.0-20260307130210-09713b32a5f6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/gtsteffaniak/filebrowser
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-30934, inspect your project dependencies for FileBrowser Quantum:
inspect dependencies for github.com/gtsteffaniak/filebrowser
Analyze the terminal output to locate any version of FileBrowser Quantum in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20260307130210-09713b32a5f6), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In FileBrowser Quantum, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-30934 Affected FileBrowser Quantum Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/gtsteffaniak/filebrowser
|
Go |
< 0.0.0-20260307130210-09713b32a5f6
|
0.0.0-20260307130210-09713b32a5f6
|
References
Frequently Asked Questions
What is CVE-2026-30934?
Which FileBrowser Quantum versions are affected?
What version fixes CVE-2026-30934?
Is github.com/gtsteffaniak/filebrowser affected?
What is the CVSS score of CVE-2026-30934?
What CWE is associated with CVE-2026-30934?
How can I check Go dependencies for CVE-2026-30934?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r633-fcgp-m532",
"modified" : "2026-03-24T21:09:10Z",
"published" : "2026-03-09T19:48:15Z",
"aliases" : [ "CVE-2026-30934" ],
"summary" : "FileBrowser Quantum: Stored XSS in public share page via unsanitized share metadata (text/template misuse)",
"details" : "## Summary\nStored XSS is possible via share metadata fields (e.g., `title`, `description`) that are rendered into HTML for `/public/share/<hash>` without context-aware escaping. The server uses `text/template` instead of `html/template`, allowing injected scripts to execute when victims visit the share URL.\n\n## Details\nThe server renders `public/index.html` using `text/template` and injects user-controlled share fields (title/description/etc.) into HTML contexts. `text/template` does not perform HTML contextual escaping like `html/template`. Because share metadata is persistent, the payload becomes stored and executes whenever a victim opens the affected share page.\n\nRelevant code paths:\n- `backend/http/static.go` (template rendering and share metadata assignment)\n- `backend/http/httpRouter.go` (template initialization)\n- `frontend/public/index.html` (insertion points for title/description and related fields)\n\n## PoC\n1. Login as a user with share creation permission.\n2. Create a share (`POST /api/share`) with malicious metadata:\n - `title = </title><script>alert(\"xss\")</script><title>`\n3. Open the resulting `/public/share/<hash>` URL in a browser.\n4. **Expected:** Payload is safely escaped and displayed as text.\n5. **Actual:** JavaScript executes in victim's browser (stored XSS).\n\nTested on Docker image: `gtstef/filebrowser:stable` (version `v1.2.1-stable`).\n\n## Impact\n- Arbitrary script execution in application origin.\n- Potential account/session compromise, CSRF-like action execution, data exfiltration from authenticated contexts.\n- Affects anyone (including unauthenticated visitors) opening the malicious share URL.\n- The XSS is stored and persistent — no social engineering beyond sharing the link is required.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/gtsteffaniak/filebrowser"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20260307130210-09713b32a5f6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/gtsteffaniak/filebrowser/security/advisories/GHSA-r633-fcgp-m532"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-30934"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/gtsteffaniak/filebrowser"
}, {
"type" : "WEB",
"url" : "https://github.com/gtsteffaniak/filebrowser/releases/tag/v1.2.2-stable"
}, {
"type" : "WEB",
"url" : "https://github.com/gtsteffaniak/filebrowser/releases/tag/v1.3.1-beta"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2026-4660"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-09T19:48:15Z",
"nvd_published_at" : "2026-03-10T18:18:53Z"
}
}