SFTPGo: Stored XSS via inline parameter on public shares and user file download
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| drakkan | sftpgo | >= 2.2.0 < 2.7.2 | — | No fix listed | CNA |
| — | github.com/drakkan/sftpgo/v2 (Go) | 2.2.0 to before 2.7.3 | 2.7.3 | Patch available | GHSA-3vcg-pv95-pq54 |
- sftpgo Vendordrakkan Affected >= 2.2.0 < 2.7.2 Fixed in — No fix listed CNA
- github.com/drakkan/sftpgo/v2 (Go) Vendor— Affected 2.2.0 to before 2.7.3 Fixed in 2.7.3 Patch available GHSA-3vcg-pv95-pq54
Remediation
- Fix · GHSA-3vcg-pv95-pq54 github.com/drakkan/sftpgo/v2 (Go) Fixed in 2.7.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-49245
- 2026-10-03 Alias added: GHSA-3vcg-pv95-pq54
References
More drakkan vulnerabilities
- TI-2022-16494 Recovery codes abuse in SFTPGo CVSS 3.1HIGH 8.3
- TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
- TI-2025-18109 Insufficient sanitization of user provided rsync command in SFTPGo CVSS 3.1HIGH 7.5
- TI-2026-71799 Denial of service in SFTPGo via malformed SSH channel request CVSS 3.1MEDIUM 6.5
- TI-2022-18599 XSS Vulnerabilities in WebClient CVSS 3.1MEDIUM 6.1
- TI-2026-36441 SFTPGo: Path confinement bypass in public browsable share partial ZIP download CVSS 3.1MEDIUM 5.9
Sources
- CVE-2026-49245 · CVE Program
- CVE-2026-49245 · NVD
- FIRST EPSS
- GHSA-3vcg-pv95-pq54 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences