CVE-2026-96594
6.1medium
Gitea repository media API stored XSS
- Severity
- 6.1medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Gitea
- Also known as
- BIT-GITEA-2026-96594GHSA-94rx-fqm6-q23v
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gitea.dev | up to 28.0.0 | CVE List |
| gitea gitea | before 28.1.0 | NVD |
| gitea (Bitnami) | before 28.1.0 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
| https://github.com/go-gitea/gitea/security/advisories/GHSA-94rx-fqm6-q23v | advisory, mitigation, vendor-advisory | |
| https://github.com/go-gitea/gitea/pull/39501 | fix, issue-tracking, patch | |
| https://github.com/go-gitea/gitea/pull/39507 | fix, issue-tracking, patch | |
| https://blog.gitea.com/release-of-28.1.0/ | article, release-notes | |
| https://github.com/go-gitea/gitea/releases/tag/v28.1.0 | article, release-notes | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-96594 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-96594 changed 2026-10-07 | CVE Terms of Use |
| NVD | CVE-2026-96594 changed 2026-10-13 | Public domain |
| Bitnami Vulnerability Database | BIT-GITEA-2026-96594 changed 2026-10-14 | Apache-2.0 |