{"id":"CVE-2026-96594","aliases":["CVE-2026-96594","BIT-GITEA-2026-96594","GHSA-94rx-fqm6-q23v"],"related":[],"kind":"vulnerability","state":"published","title":"Gitea repository media API stored XSS","summary":"The Gitea API endpoint `GET /api/v1/repos/{owner}/{repo}/media/{filepath}` wrote files of up to 1 KiB that are stored directly in Git, not in LFS, to the response without the content type and disposition headers Gitea uses for user content. An HTML file committed to a repository was therefore rendered by the browser on the Gitea origin. A user who can push to a repository could run JavaScript in the session of a victim who opens the media URL and act with the victim's permissions.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The Gitea API endpoint `GET /api/v1/repos/{owner}/{repo}/media/{filepath}` wrote files of up to 1 KiB that are stored directly in Git, not in LFS, to the response without the content type and disposition headers Gitea uses for user content. An HTML file committed to a repository was therefore rendered by the browser on the Gitea origin. A user who can push to a repository could run JavaScript in the session of a victim who opens the media URL and act with the victim's permissions.","source":"cvelist"}],"published":"2026-10-06T21:36:38.491Z","modified":"2026-10-14T11:10:55.784Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"28.0.0","status":"affected"}],"vendor":"Gitea","product":"Gitea","package":"gitea.dev","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"28.1.0"}],"vendor":"gitea","product":"gitea","cpe":"cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"28.1.0"}],"ecosystem":"Bitnami","package":"gitea","purl":"pkg:bitnami/gitea","source":"bitnami"}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-94rx-fqm6-q23v","tags":["advisory","mitigation","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/go-gitea/gitea/pull/39501","tags":["fix","issue-tracking","patch"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/go-gitea/gitea/pull/39507","tags":["fix","issue-tracking","patch"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://blog.gitea.com/release-of-28.1.0/","tags":["article","release-notes"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.1.0","tags":["article","release-notes"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96594","tags":["web"],"sources":["bitnami"]}],"credits":["https://github.com/KadirArslan","https://github.com/cruzzer","https://github.com/silverwind","https://github.com/bircni"],"assigner":"Gitea","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-07T15:04:06.630Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-96594","url":"https://www.cve.org/CVERecord?id=CVE-2026-96594","licence":"CVE Terms of Use","modified":"2026-10-07T15:04:26.695Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-96594","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96594","licence":"Public domain","modified":"2026-10-13T17:59:22.620Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GITEA-2026-96594","url":"https://osv.dev/vulnerability/BIT-GITEA-2026-96594","licence":"Apache-2.0","modified":"2026-10-14T11:10:55.784Z"}],"updatedAt":"2026-11-25T22:59:42.624Z","epss":{"score":0.00223,"percentile":0.13768,"date":"2026-12-01T12:00:22.000Z"}}