CVE-2026-96594CWE-79cross-site-scripting

CVE-2026-96594

Medium · published October 7, 2026

CVSS v3.1
6.1
EPSS
0%
Percentile
12.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00223 · 12.2th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-10-07T02:17Z
Affected products (1)
ProductVersionsFixed in
gitea/gitea< 28.1.028.1.0
References (5)
EPSS history
Timeline
  • 08 OCT 03:33Z
    EPSS moved — → 0%
    epss
  • 06 OCT 21:36Z
    Gitea repository media API stored XSS
    cvelistv5