CVE-2026-96594Gitea repository media API stored XSS
Updated under an hour ago ()
Does this affect you?
It affects Gitea. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 6.1 MEDIUM (v3.1, CISA ADP)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weakness (CWE)
- CWE-79
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- Gitea
- NVD analysis
- Analyzed
- Record last updated
- Oct 7, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
Gitea Gitea gitea:gitea (from the name) | through 28.0.0 | CNA record |
gitea gitea gitea:gitea | before 28.1.0 | NVD |
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-94rx-fqm6-q23vvendor-advisory, mitigation
- https://github.com/go-gitea/gitea/pull/39501patch, issue-tracking
- https://github.com/go-gitea/gitea/pull/39507patch, issue-tracking
- https://blog.gitea.com/release-of-28.1.0/release-notes
- https://github.com/go-gitea/gitea/releases/tag/v28.1.0release-notes
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.