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.
Published: 2026-08-20
Score: 3.7 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SFTPGo enables a download URL that contains an inline query parameter. When this parameter is used, the server suppresses the Content‑Disposition header, causing the browser to interpret the requested file as text/html. An attacker who can place an arbitrary HTML file in a shared or user home directory can craft a link that includes the inline parameter so that the file is served as an HTML page. Opening that link triggers the browser to execute the malicious script in the victim’s context, delivering a classic stored XSS attack.

Affected Systems

The vulnerability affects drakkan’s SFTPGo versions 2.2.0 through 2.7.2 inclusive. Upgrading to version 2.7.3 or later eliminates the inline parameter handling that suppresses the Content‑Disposition header and removes the flaw.

Risk and Exploitability

The CVSS score of 3.7 indicates low overall severity, and the EPSS score is not available. It is not listed in the CISA KEV catalog. Exploitation requires an attacker to have the ability to upload a file to a share or shared‑folder location and then persuade or trick a victim into visiting a specially crafted URL that includes the inline query parameter. Because the vulnerability is client‑side only and HttpOnly session cookies are in place, direct server‑side compromise or cookie theft is not possible, but the injected script runs with the victim’s browser privileges. The overall risk to an organization is moderate and mitigated through the rapid application of the vendor’s patch.

Generated by OpenCVE AI on August 21, 2026 at 01:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade drakkan:sftpgo to version 2.7.3 or later, which removes the inline query parameter handling that suppresses Content‑Disposition.
  • Configure the service to disable the inline parameter or enforce attachment disposition for all downloadable files via the SFTPGo configuration.
  • Restrict write access to public shares and shared‑folder directories so that only trusted users can upload files, and validate file content types to reject or neutralize stored HTML files.

Generated by OpenCVE AI on August 21, 2026 at 01:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-3vcg-pv95-pq54 SFTPGo has stored XSS via inline parameter on public shares and user file download
History

Fri, 21 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 21 Aug 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Drakkan
Drakkan sftpgo
Vendors & Products Drakkan
Drakkan sftpgo

Thu, 20 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
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.
Title SFTPGo: Stored XSS via inline parameter on public shares and user file download
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T15:35:53.045Z

Reserved: 2026-05-28T14:33:01.178Z

Link: CVE-2026-49245

cve-icon Vulnrichment

Updated: 2026-08-21T15:35:47.736Z

cve-icon NVD

Status : Received

Published: 2026-08-20T22:17:20.107

Modified: 2026-08-21T16:17:18.207

Link: CVE-2026-49245

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T01:15:07Z

Weaknesses
  • CWE-79

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