{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b5409a478138fca5f1d369ae5d47f753156cbd15"
            },
            {
              "fixed": "a779e504484592d88f510ce7952f4fa18b671e21"
            }
          ],
          "repo": "https://github.com/drakkan/sftpgo",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-3vcg-pv95-pq54"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49245.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "\u003e= 2.2.0 \u003c 2.7.2"
          },
          {
            "last_affected": "\u003e= 2.2.0 \u003c 2.7.2"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "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.",
  "id": "CVE-2026-49245",
  "modified": "2026-08-23T03:42:56.449844553Z",
  "published": "2026-08-20T21:52:20.219Z",
  "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"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "SFTPGo: Stored XSS via inline parameter on public shares and user file download"
}