CVE-2026-49245 SFTPGo: Stored XSS via inline parameter on public shares and user file download

Low 3.7 Published Updated

Attackers can execute arbitrary scripts in victims' browsers via stored XSS in SFTPGo public shares and user downloads.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-49245?

CVE-2026-49245 is a low-severity cross-site scripting vulnerability in drakkan sftpgo, published on 20 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-49245?

4 open source packages ship an affected version, including github.com/drakkan/sftpgo/v2 and github.com/drakkan/sftpgo.

PackageAffectedFixed in
github.com/drakkan/sftpgo/v2 GoFrom 2.2.02.7.3
github.com/drakkan/sftpgo/v2 GoFrom 2.2.02.7.3
github.com/drakkan/sftpgo/v2 GoFrom 2.2.02.7.3
github.com/drakkan/sftpgo GoAll versionsNone

How do I fix CVE-2026-49245?

Upgrade github.com/drakkan/sftpgo/v2 to 2.7.3 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-49245 being exploited?

There is no known exploitation of CVE-2026-49245 in the wild and no public exploit code.

Sources

Also known as GHSA-3vcg-pv95-pq54, GO-2026-5900.

Is CVE-2026-49245 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free