8.9high
FileBrowser Quantum: Stored XSS in public share page via unsanitized share metadata (text/template misuse)
- Severity
- 8.9high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-r633-fcgp-m532GO-2026-4660
Description
FileBrowser Quantum is a free, self-hosted, web-based file manager. Prior to 1.3.1-beta and 1.2.2-stable, 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. This vulnerability is fixed in 1.3.1-beta and 1.2.2-stable.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gtsteffaniak filebrowser | >= 1.3.0-beta, < 1.3.1-beta, < 1.2.2-stable | CVE List |
| github.com/gtsteffaniak/filebrowser (Go) | before 0.0.0-20260307130210-09713b32a5f6 | GitHub Advisory Database, Go Vulnerability Database |
| filebrowser filebrowser | up to 1.2.9, 1.2.1, 1.3.0 | NVD |
All scores
| GitHub_M | 8.9high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L |
| GitHub | 8.9high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
FileBrowser Quantum is a free, self-hosted, web-based file manager. Prior to 1.3.1-beta and 1.2.2-stable, 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. This vulnerability is fixed in 1.3.1-beta and 1.2.2-stable.
GitHub Advisory Database
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
- Login as a user with share creation permission.
- Create a share (
POST /api/share) with malicious metadata:title = </title><script>alert("xss")</script><title>
- Open the resulting
/public/share/<hash>URL in a browser. - Expected: Payload is safely escaped and displayed as text.
- 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.
Go Vulnerability Database
FileBrowser Quantum: Stored XSS in public share page via unsanitized share metadata (text/template misuse) in github.com/gtsteffaniak/filebrowser
NVD (es)
FileBrowser Quantum es un gestor de archivos gratuito, autoalojado y basado en web. Antes de 1.3.1-beta y 1.2.2-stable, es posible un XSS Almacenado a través de campos de metadatos de compartición (p. ej., título, descripción) que se renderizan en HTML para /public/share/ sin escape sensible al contexto. El servidor utiliza text/template en lugar de html/template, permitiendo que los scripts inyectados se ejecuten cuando las víctimas visitan la URL de compartición. Esta vulnerabilidad está corregida en 1.3.1-beta y 1.2.2-stable.
References
| https://github.com/gtsteffaniak/filebrowser/security/advisories/GHSA-r633-fcgp-m532 | advisory, exploit, vendor-advisory, web | |
| https://github.com/gtsteffaniak/filebrowser/releases/tag/v1.2.2-stable | release-notes, web | |
| https://github.com/gtsteffaniak/filebrowser/releases/tag/v1.3.1-beta | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-30934 | advisory | |
| https://github.com/gtsteffaniak/filebrowser | package | |
| https://pkg.go.dev/vuln/GO-2026-4660 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-30934 changed 2026-03-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r633-fcgp-m532 changed 2026-03-24 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4660 changed 2026-03-23 | CC-BY-4.0 |
| NVD | CVE-2026-30934 changed 2026-06-17 | Public domain |