CVE-2026-30934: FileBrowser Quantum Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-r633-fcgp-m532
CVSS 8.9
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-30934
GHSA Identifier GHSA-r633-fcgp-m532
Severity HIGH
CVSS v3.1 Base Score 8.9
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product FileBrowser Quantum
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (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.

github.com/gtsteffaniak/filebrowser fixed: 0.0.0-20260307130210-09713b32a5f6
Upgrade github.com/gtsteffaniak/filebrowser to 0.0.0-20260307130210-09713b32a5f6
Verify Direct and Transitive Dependencies

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

## Summary Stored 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. ## Details The 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. Relevant code paths: - `backend/http/static.go` (template rendering and share metadata assignment) - `backend/http/httpRouter.go` (template initialization) - `frontend/public/index.html` (insertion points for title/description and related fields) ## PoC 1. Login as a user with share creation permission. 2. Create a share (`POST /api/share`) with malicious metadata: - `title = </title><script>alert("xss")</script><title>` 3. Open the resulting `/public/share/<hash>` URL in a browser. 4. **Expected:** Payload is safely escaped and displayed as text. 5. **Actual:** JavaScript executes in victim's browser (stored XSS). Tested on Docker image: `gtstef/filebrowser:stable` (version `v1.2.1-stable`). ## Impact - Arbitrary script execution in application origin. - Potential account/session compromise, CSRF-like action execution, data exfiltration from authenticated contexts. - Affects anyone (including unauthenticated visitors) opening the malicious share URL. - The XSS is stored and persistent — no social engineering beyond sharing the link is required.

CVE-2026-30934 Affected FileBrowser Quantum Versions

1 component(s)
Fixed Versions:
0.0.0-20260307130210-09713b32a5f6
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?
CVE-2026-30934 is a security vulnerability in FileBrowser Quantum involving Stored XSS in public share page via unsanitized share metadata (text/template misuse) under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which FileBrowser Quantum versions are affected?
Affected versions include releases prior to 0.0.0-20260307130210-09713b32a5f6 across affected packages: github.com/gtsteffaniak/filebrowser.
What version fixes CVE-2026-30934?
Upgrading to 0.0.0-20260307130210-09713b32a5f6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/gtsteffaniak/filebrowser affected?
Yes, github.com/gtsteffaniak/filebrowser is affected in releases prior to 0.0.0-20260307130210-09713b32a5f6. Upgrade your dependency to 0.0.0-20260307130210-09713b32a5f6 or later.
What is the CVSS score of CVE-2026-30934?
CVE-2026-30934 has a CVSS v3.1 base score of 8.9 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L.
What CWE is associated with CVE-2026-30934?
CVE-2026-30934 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Go dependencies for CVE-2026-30934?
Run the dependency tree command: 'inspect dependencies for github.com/gtsteffaniak/filebrowser'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}