CVE Catalog

CVE-2026-96594

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.21%

10th percentile - higher than 10% of all known CVEs

Summary

The Gitea API endpoint GET /api/v1/repos/{owner}/{repo}/media/{filepath} wrote files up to 1 KiB stored directly in Git (not LFS) to the response without the content type and disposition headers Gitea uses for user content. An HTML file committed to a repository was rendered by the browser on the Gitea origin. A user with push access could run JavaScript in the session of a victim opening the media URL and act with the victim's permissions.

Risk Assessment

Session hijacking risk — attacker can execute arbitrary JavaScript in the victim's context and perform actions with their permissions, potentially leading to data theft or unauthorized changes.

Recommendation

Update Gitea to a patched version and consider adding security headers (e.g., X-Content-Type-Options) for all user-content responses.

Other vulnerabilities in Gitea

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS