CVE-2026-49245: SFTPGo stored XSS via inline parameter in file downloads

CVE-2026-49245 · Severity: low · CVSS 3.7 · Published 2026-08-20

SFTPGo, a secure file transfer solution, is vulnerable to a security flaw where malicious files uploaded to the system could execute code in a user's browser. An attacker could use this to perform unauthorized actions if they trick a user into clicking a specially crafted link to a shared file. While the impact is limited by existing security measures like protected cookies, it could still lead to unauthorized data access within the file-sharing interface.

Technologies: github.com/drakkan/sftpgo (Go), github.com/drakkan/sftpgo/v2 (Go). Vendors: Go.

Quick answers

Is CVE-2026-49245 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-49245 being exploited in the wild.
How severe is CVE-2026-49245?
Low severity, with a CVSS score of 3.7, published 20 August 2026.
Which products and versions are affected?
github.com/drakkan/sftpgo (Go) SEMVER:introduced=0; github.com/drakkan/sftpgo/v2 (Go) >= 2.2.0, <= 2.7.1, SEMVER:introduced=2.2.0,fixed=2.7.3.
Is there a fix for CVE-2026-49245?
Yes. github.com/drakkan/sftpgo/v2 (Go): upgrade to 2.7.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-49245 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-49245?
Check whether you run github.com/drakkan/sftpgo (Go) or github.com/drakkan/sftpgo/v2 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/drakkan/sftpgo/v2 (Go): upgrade to 2.7.3 or later
    go get github.com/drakkan/sftpgo/v2@v2.7.3

Technical details

A stored cross-site scripting (XSS) vulnerability exists in SFTPGo due to the 'inline' query parameter suppressing the 'Content-Disposition: attachment' header. This allows HTML files stored in a share or home directory to be served with a 'text/html' content type, executing within the SFTPGo web origin. Exploitation requires an attacker to upload a malicious file and use social engineering to convince a victim to visit a non-standard URL. The impact is mitigated by HttpOnly session cookies and the fact that authenticated shares use distinct session cookies, preventing easy account takeovers. The vulnerability is addressed in version 2.7.3 by removing the 'inline' parameter and enforcing download attachments.

Affected products

  • drakkan SFTPGo >= 2.2.0, <= 2.7.1

Identifiers

  • CVE-2026-49245
  • GHSA-3vcg-pv95-pq54
  • GO-2026-5900

Timeline

  • 2026-05-30: disclosed
  • 2026-07-02: advisory: GitHub Advisory published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.