{"id":"CVE-2026-49245","aliases":["GHSA-3vcg-pv95-pq54","GO-2026-5900"],"url":"https://o3.security/vulnerability/CVE-2026-49245","summary":"SFTPGo: Stored XSS via inline parameter on public shares and user file download","details":"## Summary\n\nThe 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).\n\n## Impact\n\nLow. 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:\n\n- Session cookies are HttpOnly, so the cookie cannot be read by the injected script.\n- 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.\n\nIt 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.\n\n## Patches\n\nUpgrade 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.","published":"2026-08-20T21:52:20.219Z","modified":"2026-10-28T02:30:43.607077984Z","cvss":{"score":3.7,"severity":"LOW","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N"},"epss":{"score":0.002,"percentile":0.10151,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/drakkan/sftpgo/v2","fixedVersion":"2.7.3"}],"fix":{"url":"https://github.com/drakkan/sftpgo/commit/b5409a478138fca5f1d369ae5d47f753156cbd15","label":"drakkan/sftpgo@b5409a4"},"references":[{"type":"WEB","url":"https://github.com/drakkan/sftpgo/releases/tag/v2.7.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49245.json"},{"type":"ADVISORY","url":"https://github.com/drakkan/sftpgo/security/advisories/GHSA-3vcg-pv95-pq54"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49245"},{"type":"FIX","url":"https://github.com/drakkan/sftpgo/commit/b5409a478138fca5f1d369ae5d47f753156cbd15"},{"type":"PACKAGE","url":"https://github.com/drakkan/sftpgo"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:43.607077984Z"}}