CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-MMPX-JH39-WRV6

GHSA-MMPX-JH39-WRV6: Stored Cross-Site Scripting in FileBrowser Quantum via SVG Rendering

Amit Schendel
Amit Schendel
Senior Security Researcher

May 7, 2026·6 min read·6 visits

Executive Summary (TL;DR)

FileBrowser Quantum allows Stored XSS via malicious SVG files served inline due to a missing Content-Security-Policy header. Attackers can execute arbitrary JavaScript in a victim's session.

FileBrowser Quantum versions prior to v1.3.1-stable and v1.3.9-beta are vulnerable to Stored Cross-Site Scripting (XSS). The vulnerability manifests when the application serves user-uploaded Scalable Vector Graphics (SVG) files with the `inline` parameter. Due to the absence of a restrictive Content-Security-Policy (CSP) header, modern browsers execute embedded JavaScript within the application's origin context.

Vulnerability Overview

FileBrowser Quantum functions as a web-based file manager, allowing users to upload, manage, and share files. A core feature of this application is the ability to generate public share links for stored files. These files can be served directly to a user's browser for immediate viewing using the ?inline=true query parameter.

The vulnerability exists in how the application handles HTTP responses for inline content rendering. Specifically, the application sets the Content-Disposition: inline header without applying necessary security controls to the response. This configuration instructs the browser to render the file natively rather than prompting the user to download it.

Because the application serves these files from its primary origin, any active content within the rendered file executes in the context of the FileBrowser instance. The application fails to mitigate this behavior, lacking a Content Security Policy (CSP) header that would normally restrict script execution for untrusted user-uploaded files.

Root Cause Analysis

The underlying flaw is categorized as CWE-79: Improper Neutralization of Input During Web Page Generation, combined with CWE-693: Protection Mechanism Failure. The mechanism failure occurs in the backend HTTP handler responsible for file downloads and inline rendering.

Scalable Vector Graphics (SVG) files are XML-based documents capable of containing embedded JavaScript. The SVG specification allows for script execution through direct <script> tags or via event handlers such as onload. When a browser receives an SVG file with a Content-Type: image/svg+xml header and a Content-Disposition: inline header, it processes the document as a top-level execution context.

The FileBrowser Quantum backend routine setContentDisposition processes the incoming HTTP request and checks for the inline=true parameter. If present, it modifies the disposition type but returns the response without injecting a Content-Security-Policy header. The absence of this header permits the browser's rendering engine to parse and execute any JavaScript found within the SVG payload.

Code Analysis

The vulnerability resides in the Go backend, specifically within the backend/http/download.go file. The setContentDisposition function is responsible for determining whether a requested file should be downloaded as an attachment or displayed inline based on the query parameters.

In the vulnerable implementation, the function simply toggled the disposition string. It did not alter the security posture of the HTTP response. The browser relies on the server to assert execution boundaries, and the server failed to provide them.

The patch applied in commit 6bfc3974192e954f71cc5d1cd04baaaec3b76383 introduces a direct mitigation for this specific rendering path. The developers implemented a CSP header to explicitly disable script execution when a file is requested inline.

// backend/http/download.go (Patched)
 
func setContentDisposition(w http.ResponseWriter, r *http.Request, fileName string) {
    dispositionType := "attachment"
    if r.URL.Query().Get("inline") == "true" {
        dispositionType = "inline"
+       // Inline SVG (and similar) can execute embedded scripts when opened as a top-level document; 
+       // match upstream filebrowser mitigation.
+       w.Header().Set("Content-Security-Policy", "script-src 'none'")
    }
    // ...
}

By injecting w.Header().Set("Content-Security-Policy", "script-src 'none'"), the server explicitly instructs the browser that no scripts are permitted to run within this document. The browser's CSP engine enforces this policy during the parsing phase, neutralizing any <script> tags or event handlers present in the SVG file.

Exploitation Methodology

Exploitation requires an attacker to upload a crafted SVG file to the FileBrowser instance. The attacker must have sufficient privileges to upload files, though the required privilege level depends on the specific deployment configuration. Once the file is hosted, the attacker leverages the application's sharing functionality.

The attacker creates an SVG file containing a malicious JavaScript payload. A standard proof-of-concept payload utilizes the onload event handler within the main svg tag. This ensures the JavaScript executes immediately upon the document rendering in the victim's browser.

<svg xmlns="http://www.w3.org/2000/svg" onload="alert(document.domain)">
    <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
</svg>

After uploading the payload, the attacker generates a public share link. The attacker appends the ?inline=true query parameter to the URL and distributes it to the intended victim. When the victim navigates to the provided link, their browser fetches the file, observes the inline disposition, and renders the XML. The embedded JavaScript executes within the domain context of the FileBrowser application.

Impact Assessment

The successful exploitation of this vulnerability yields arbitrary JavaScript execution in the context of the FileBrowser application. Because the execution occurs within the application's origin, the attacker bypasses the Same-Origin Policy (SOP) restrictions that normally separate different web properties.

An attacker can utilize this access to interact with the application on behalf of the victim. If the victim is an authenticated user or an administrator, the attacker's script can issue XMLHttpRequests (XHR) to the backend API. This access permits the modification of files, deletion of data, or the creation of new administrative accounts.

The payload can also access sensitive data stored within the browser. This includes reading session tokens stored in localStorage, sessionStorage, or non-HttpOnly cookies. The extracted tokens can be exfiltrated to an attacker-controlled server, leading to full session hijacking.

Remediation and Mitigation

The primary remediation for this vulnerability is updating the FileBrowser Quantum deployment to a patched version. The maintainer released fixes in versions v1.3.1-stable and v1.3.9-beta. These updates apply the CSP header fix natively within the application binary.

If immediate patching is not feasible, administrators can mitigate the vulnerability at the reverse proxy layer. Web servers such as NGINX or Apache can be configured to dynamically inject the Content-Security-Policy: script-src 'none' header based on the request URL. Specifically, the proxy can inspect the query parameters and append the header if inline=true is detected.

Furthermore, administrators should review the necessity of allowing public shares or inline rendering. Restricting the inline parameter at the WAF level prevents the vulnerability from being triggered entirely, forcing all shared files to download as attachments rather than executing in the browser.

Official Patches

gtsteffaniakSource code patch introducing CSP header
gtsteffaniakOfficial project release page for patched binaries

Fix Analysis (1)

Technical Appendix

CVSS Score
5.4/ 10

Affected Systems

FileBrowser Quantum (github.com/gtsteffaniak/filebrowser)

Affected Versions Detail

Product
Affected Versions
Fixed Version
FileBrowser Quantum
gtsteffaniak
< v1.3.1-stablev1.3.1-stable
FileBrowser Quantum
gtsteffaniak
< v1.3.9-betav1.3.9-beta
AttributeDetail
Vulnerability TypeStored Cross-Site Scripting (XSS)
CWE IDCWE-79, CWE-693
Attack VectorNetwork
Authentication StatusRequired for upload, unauthenticated for victim execution
Affected Componentbackend/http/download.go
Exploit AvailabilityProof of Concept available

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1059.007JavaScript
Execution
CWE-79
Cross-site Scripting

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Vulnerability Timeline

Fix commit pushed to repository
2026-05-01
Patched versions v1.3.1-stable and v1.3.9-beta released
2026-05-01

References & Sources

  • [1]GitHub Advisory GHSA-mmpx-jh39-wrv6
  • [2]Fix Commit in gtsteffaniak/filebrowser
  • [3]Project Releases Page
  • [4]Go Vulnerability Database Entry

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•4 minutes ago•CVE-2026-11645
8.8

CVE-2026-11645: Out-of-Bounds Memory Access in Google Chrome V8 Engine

A high-severity memory corruption vulnerability exists in the V8 JavaScript engine of Google Chrome before versions 149.0.7827.102/103. The flaw arises from an incorrect bounds-check elimination during JIT compilation by the TurboFan optimizer, allowing remote attackers to achieve out-of-bounds read and write access inside the sandboxed renderer process.

Amit Schendel
Amit Schendel
2 views•6 min read
•about 9 hours ago•CVE-2026-50751
9.3

CVE-2026-50751: Authentication Bypass in Check Point Security Gateway IKEv1 Legacy Validation

An improper authentication vulnerability (CWE-287) exists in the legacy, deprecated Internet Key Exchange version 1 (IKEv1) key exchange protocol implementation in Check Point Security Gateways. The vulnerability is caused by a logic flow weakness during the certificate validation process for Remote Access VPN and Mobile Access (SSL VPN) connections. An unauthenticated remote attacker can exploit this weakness to bypass user authentication entirely, establishing a fully functional Remote Access VPN connection without a valid password.

Alon Barad
Alon Barad
50 views•6 min read
•about 22 hours ago•CVE-2026-39922
6.3

CVE-2026-39922: Server-Side Request Forgery in GeoNode Service Registration Endpoint

GeoNode versions prior to 4.4.5 and 5.0.2 are vulnerable to Server-Side Request Forgery (SSRF) in the service registration endpoint. Authenticated attackers with low privileges can exploit insufficient input validation in the Web Map Service (WMS) registration module to force the application server to make outbound network queries to loopback addresses, private RFC1918 subnets, link-local scopes, and cloud metadata endpoints. This technical report details the mechanics of the vulnerability, the underlying architectural flaw, and how to effectively remediate and mitigate the associated security risks.

Alon Barad
Alon Barad
4 views•7 min read
•1 day ago•CVE-2022-0492
7.8

CVE-2022-0492: Privilege Escalation and Container Escape via cgroups v1 release_agent

CVE-2022-0492 is a high-severity missing authorization vulnerability in the Linux kernel's Control Groups (cgroups) v1 implementation. The flaw resides within the cgroup_release_agent_write function in kernel/cgroup/cgroup-v1.c, where the kernel fails to validate if the process writing to the release_agent file possesses administrative capabilities in the initial user namespace. This allows a local attacker inside a container with root privileges (UID 0) to abuse user namespaces, mount a cgroups v1 directory, modify the release_agent parameter, and execute arbitrary commands on the host system as host root, effectively achieving a complete container escape.

Amit Schendel
Amit Schendel
12 views•7 min read
•3 days ago•GHSA-G72G-R7M4-9X4G
6.3

GHSA-G72G-R7M4-9X4G: Insufficient Session Expiration of OAuth Tokens in NocoDB

NocoDB is subject to an insufficient session expiration vulnerability where OAuth access and refresh tokens are not invalidated or revoked during security-sensitive actions such as password changes, forgot-password requests, or password resets. This allows an attacker possessing an active OAuth token to maintain unauthorized persistence.

Amit Schendel
Amit Schendel
12 views•6 min read
•3 days ago•GHSA-FGMC-2HQJ-86V4
6.9

GHSA-FGMC-2HQJ-86V4: Default Administrative Credentials in vantage6-server

A vulnerability in the vantage6 federated learning framework allows unauthenticated remote attackers to gain administrative control of the server via hardcoded default credentials (root/root) when deployed under default configurations in versions 4.2.3 and below.

Amit Schendel
Amit Schendel
8 views•5 min read