CVE-2026-96594
published medium CVSS 3.1 · 6.1Gitea repository media API stored XSS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gitea | — | gitea.devGitea · 0 through 28.0.0 · Other versions: unaffected | Affected | Not stated | Gitea |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gitea | Gitea | 0 through 28.0.0 (affected · semver)Default: unaffected | Gitea · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
5- Gitea 28.1.0 release announcement https://blog.gitea.com/release-of-28.1.0/
- Fix: go-gitea/gitea pull request #39501 https://github.com/go-gitea/gitea/pull/39501
- Fix backport to release/v28: go-gitea/gitea pull request #39507 https://github.com/go-gitea/gitea/pull/39507
- go-gitea/gitea v28.1.0 release https://github.com/go-gitea/gitea/releases/tag/v28.1.0
- GitHub Security Advisory GHSA-94rx-fqm6-q23v https://github.com/go-gitea/gitea/security/advisories/GHSA-94rx-fqm6-q23v
Provider assertions
2Gitea · cna
Gitea repository media API stored XSS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 77fe27d44e7374cf9d299cfdef1f9dbf9f786b7e128be4d1b0d1fef63d63d01f
- Ingested
- 07 Oct 2026, 22:47:11 UTC
- Source record
- Official CVE record