3.7low
SFTPGo: Stored XSS via inline parameter on public shares and user file download
- Severity
- 3.7low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3vcg-pv95-pq54GO-2026-5900
Description
SFTPGo is an open source, event-driven file transfer solution. From 2.2.0 until 2.7.3, the inline query parameter on browsable-share file downloads and authenticated user-file downloads suppresses Content-Disposition: attachment, allowing an attacker-controlled HTML file stored in a share or home directory to be served as text/html in the SFTPGo web origin. An attacker who can place the file can send a crafted link to a victim, and opening that link executes the stored content in the victim's browser context. Exploitation requires social engineering and suitable share or shared-folder access, while HttpOnly session cookies limit direct cookie theft. This issue is fixed in version 2.7.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| drakkan sftpgo | >= 2.2.0 < 2.7.2 | CVE List |
| github.com/drakkan/sftpgo/v2 (Go) | from 2.2.0 before 2.7.3 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/drakkan/sftpgo (Go) | all versions | Go Vulnerability Database |
All scores
| GitHub_M | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
SFTPGo is an open source, event-driven file transfer solution. From 2.2.0 until 2.7.3, the inline query parameter on browsable-share file downloads and authenticated user-file downloads suppresses Content-Disposition: attachment, allowing an attacker-controlled HTML file stored in a share or home directory to be served as text/html in the SFTPGo web origin. An attacker who can place the file can send a crafted link to a victim, and opening that link executes the stored content in the victim's browser context. Exploitation requires social engineering and suitable share or shared-folder access, while HttpOnly session cookies limit direct cookie theft. This issue is fixed in version 2.7.3.
GitHub Advisory Database
Summary
The inline query parameter on the browsable-share file download and on the authenticated user file download suppressed Content-Disposition: attachment, so an HTML file stored in a share or home directory could be served as text/html and execute in SFTPGo's web origin (stored XSS).
Impact
Low. Exploitation requires the attacker to place the file and a victim to open the crafted link — a URL the WebClient never generates, so it requires social engineering — and the practical conditions are narrow:
- Session cookies are HttpOnly, so the cookie cannot be read by the injected script.
- Authenticated shares set their own session cookie, which overwrites the victim's WebClient cookie, no account pivot. The realistic case is a public share, or a folder shared between distinct users combined with targeted social engineering.
It is a genuine trust-boundary violation (SFTPGo emits attacker-controlled content as active HTML in its own origin), hence an advisory, but the constrained preconditions and the HttpOnly mitigation keep it Low.
Patches
Upgrade to v2.7.3. These endpoints now always respond with Content-Disposition: attachment; the inline parameter has been removed. See the fix commit for the full technical rationale.
Go Vulnerability Database
SFTPGo has stored XSS via inline parameter on public shares and user file download in github.com/drakkan/sftpgo
NVD (es)
SFTPGo es una solución de transferencia de archivos de código abierto y basada en eventos. Desde la versión 2.2.0 hasta la 2.7.3, el parámetro de consulta inline en las descargas de archivos de recursos compartidos navegables y en las descargas de archivos de usuarios autenticados suprime Content-Disposition: attachment, permitiendo que un archivo HTML controlado por el atacante almacenado en un recurso compartido o directorio personal sea servido como text/html en el origen web de SFTPGo. Un atacante que puede colocar el archivo puede enviar un enlace malicioso a una víctima, y al abrir ese enlace se ejecuta el contenido almacenado en el contexto del navegador de la víctima. La explotación requiere ingeniería social y acceso adecuado al recurso compartido o a la carpeta compartida, mientras que las cookies de sesión HttpOnly limitan el robo directo de cookies. Este problema está solucionado en la versión 2.7.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49245 changed 2026-08-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3vcg-pv95-pq54 changed 2026-07-07 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5900 changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2026-49245 changed 2026-10-18 | Public domain |