{"id":"GHSA-3vcg-pv95-pq54","revision":"493aa66d498f42099741ee76a8fb72c4","records":[{"revision":"493aa66d498f42099741ee76a8fb72c4","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-3vcg-pv95-pq54","aliases":["CVE-2026-49245","GO-2026-5900"],"title":"SFTPGo has stored XSS via inline parameter on public shares and user file download","description":"## 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.","state":0,"publishedAt":"2026-07-02T19:09:30+00:00","modifiedAt":"2026-07-07T16:11:31.6414405+00:00","affected":[{"ecosystem":"Go","name":"github.com/drakkan/sftpgo/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.2.0"},{"kind":"fixed","version":"2.7.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/drakkan/sftpgo/security/advisories/GHSA-3vcg-pv95-pq54","https://github.com/drakkan/sftpgo"],"sourceUrl":"https://github.com/advisories/GHSA-3vcg-pv95-pq54","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3vcg-pv95-pq54","identifiers":["GHSA-3vcg-pv95-pq54","CVE-2026-49245","GO-2026-5900"]},"retained":false,"historicalAffected":[]}],"coverage":[]}