# CVE-2026-96594: Gitea repository media API stored XSS

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-06 · Modified: 2026-10-07
- Record: https://cvemate.com/vulnerability/CVE-2026-96594 · JSON: https://cvemate.com/vulnerability/CVE-2026-96594/json

## Description

```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.
```

## Signals

- CVSS: 6.1 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.223%, percentile 13.706%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- gitea gitea: ≤ 28.0.0 \| \< 28.1.0

## References

- <https://github.com/go-gitea/gitea/security/advisories/GHSA-94rx-fqm6-q23v>
- <https://github.com/go-gitea/gitea/pull/39501>
- <https://github.com/go-gitea/gitea/pull/39507>
- <https://blog.gitea.com/release-of-28.1.0/>
- <https://github.com/go-gitea/gitea/releases/tag/v28.1.0>

---

Data as of 2026-12-05T14:12:59.974Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
