PT-2026-107308 · Gitea · Gitea

CVE-2026-96594

·

Published

2026-10-06

·

Updated

2026-10-06

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Gitea (affected versions not specified)
Description The API endpoint GET /api/v1/repos/{owner}/{repo}/media/{filepath} fails to include the proper content type and disposition headers when serving files up to 1 KiB stored directly in Git rather than in LFS (Large File Storage). This allows an HTML file committed to a repository to be rendered by the browser on the Gitea origin. Consequently, a user with push access to a repository can execute JavaScript within the session of a victim who opens the media URL, allowing the attacker to perform actions with the victim's permissions.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-96594
GHSA-94RX-FQM6-Q23V

Affected Products

Gitea