{"id":"CVE-2026-49245","aliases":["CVE-2026-49245","GHSA-3vcg-pv95-pq54","GO-2026-5900"],"related":[],"kind":"vulnerability","state":"published","title":"SFTPGo: Stored XSS via inline parameter on public shares and user file download","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"SFTPGo has stored XSS via inline parameter on public shares and user file download in github.com/drakkan/sftpgo","format":"markdown","source":"go"},{"lang":"es","text":"SFTPGo es una solución de transferencia de archivos de código abierto y basada en eventos. Desde la versión 2.2.0 hasta la 2.7.3, el parámetro de consulta inline en las descargas de archivos de recursos compartidos navegables y en las descargas de archivos de usuarios autenticados suprime Content-Disposition: attachment, permitiendo que un archivo HTML controlado por el atacante almacenado en un recurso compartido o directorio personal sea servido como text/html en el origen web de SFTPGo. Un atacante que puede colocar el archivo puede enviar un enlace malicioso a una víctima, y al abrir ese enlace se ejecuta el contenido almacenado en el contexto del navegador de la víctima. La explotación requiere ingeniería social y acceso adecuado al recurso compartido o a la carpeta compartida, mientras que las cookies de sesión HttpOnly limitan el robo directo de cookies. Este problema está solucionado en la versión 2.7.3.","source":"nvd"}],"published":"2026-07-02T19:09:30.000Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 2.2.0 < 2.7.2","status":"affected"}],"vendor":"drakkan","product":"sftpgo","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.7.3"}],"ecosystem":"Go","package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/drakkan/sftpgo","purl":"pkg:golang/github.com/drakkan/sftpgo","source":"go"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.7.3"}],"ecosystem":"Go","package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"go"}],"references":[{"url":"https://github.com/drakkan/sftpgo/security/advisories/GHSA-3vcg-pv95-pq54","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/drakkan/sftpgo/commit/b5409a478138fca5f1d369ae5d47f753156cbd15","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/drakkan/sftpgo/releases/tag/v2.7.3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/drakkan/sftpgo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-21T15:35:39.407Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49245","url":"https://www.cve.org/CVERecord?id=CVE-2026-49245","licence":"CVE Terms of Use","modified":"2026-08-21T15:35:53.045Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3vcg-pv95-pq54","url":"https://github.com/advisories/GHSA-3vcg-pv95-pq54","licence":"CC-BY-4.0","modified":"2026-07-07T16:11:31.641Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5900","url":"https://pkg.go.dev/vuln/GO-2026-5900","licence":"CC-BY-4.0","modified":"2026-07-07T16:00:24.163Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49245","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49245","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:34.734Z","epss":{"score":0.002,"percentile":0.10444,"date":"2026-12-01T12:00:22.000Z"}}