{"id":"CVE-2026-30934","aliases":["CVE-2026-30934","GHSA-r633-fcgp-m532","GO-2026-4660"],"related":[],"kind":"vulnerability","state":"published","title":"FileBrowser Quantum: Stored XSS in public share page via unsanitized share metadata (text/template misuse)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"FileBrowser Quantum: Stored XSS in public share page via unsanitized share metadata (text/template misuse) in github.com/gtsteffaniak/filebrowser","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-03-09T19:48:15.000Z","modified":"2026-06-17T10:33:10.703Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","score":8.9,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","score":8.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","score":8.9,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 1.3.0-beta, < 1.3.1-beta","status":"affected"},{"version":"< 1.2.2-stable","status":"affected"}],"vendor":"gtsteffaniak","product":"filebrowser","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260307130210-09713b32a5f6"}],"ecosystem":"Go","package":"github.com/gtsteffaniak/filebrowser","purl":"pkg:golang/github.com/gtsteffaniak/filebrowser","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260307130210-09713b32a5f6"}],"ecosystem":"Go","package":"github.com/gtsteffaniak/filebrowser","purl":"pkg:golang/github.com/gtsteffaniak/filebrowser","source":"go"},{"ranges":[{"status":"affected","lastAffected":"1.2.9"},{"status":"affected","version":"1.2.1"},{"status":"affected","version":"1.3.0"}],"vendor":"filebrowser","product":"filebrowser","cpe":"cpe:2.3:a:filebrowser:filebrowser:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/gtsteffaniak/filebrowser/security/advisories/GHSA-r633-fcgp-m532","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/gtsteffaniak/filebrowser/releases/tag/v1.2.2-stable","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/gtsteffaniak/filebrowser/releases/tag/v1.3.1-beta","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30934","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/gtsteffaniak/filebrowser","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2026-4660","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-03-10T16:38:59.115Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-30934","url":"https://www.cve.org/CVERecord?id=CVE-2026-30934","licence":"CVE Terms of Use","modified":"2026-03-10T16:41:10.418Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r633-fcgp-m532","url":"https://github.com/advisories/GHSA-r633-fcgp-m532","licence":"CC-BY-4.0","modified":"2026-03-24T21:17:27.316Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4660","url":"https://pkg.go.dev/vuln/GO-2026-4660","licence":"CC-BY-4.0","modified":"2026-03-23T04:52:51.941Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-30934","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30934","licence":"Public domain","modified":"2026-06-17T10:33:10.703Z"}],"updatedAt":"2026-11-25T22:59:15.617Z","epss":{"score":0.00413,"percentile":0.37642,"date":"2026-12-01T12:00:22.000Z"}}