CVE-2026-96594 json
Gitea repository media API stored XSS
published last mo. modified 28d ago also BIT-gitea-2026-96594 , EUVD-2026-94066 , GHSA-94rx-fqm6-q23v
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
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.
Patch / fix
- bitnami gitea 28.1.0
- gitea gitea 28.1.0
- github.com/go-gitea/gitea#39501 pull request
- github.com/go-gitea/gitea#39507 pull request
- github.com/go-gitea/gitea/releases/tag/v28.1.0 release
Is CVE-2026-96594 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last mo.
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | gitea | <28.1.0 |
28.1.0 |
Affected products
- Gitea Gitea
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/go-gitea/gitea/pull/39501
patch, issue-tracking
-
github.com
/go-gitea/gitea/pull/39507
patch, issue-tracking
-
github.com
/go-gitea/gitea/security/advisories/GHSA-94rx-fqm6-q23v
vendor-advisory, mitigation, advisory
-
blog.gitea.com
/release-of-28.1.0/
release-notes, article
-
github.com
/go-gitea/gitea/releases/tag/v28.1.0
release-notes, article
-
nvd.nist.gov
/vuln/detail/CVE-2026-96594
web
Sources
- CVE List CVE-2026-96594
- NVD CVE-2026-96594
- OSV BIT-gitea-2026-96594
- Maintainer advisory GHSA-94rx-fqm6-q23v
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of go-gitea/gitea published their own advisory on GitHub. Reviewed sources take precedence over it.