CVE-2026-96594

MEDIUM CVSS 3.1: 6.1 EPSS 0.22%
Updated Oct 13, 2026
Gitea
Parameter Value
CVSS 6.1 (MEDIUM)
Affected Versions before 28.1.0
Fixed In 28.1.0
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Gitea
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Gitea Gitea
cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
— 28.1.0