Skip to main content
← All vulnerabilities
CVE-2026-96594BIT-GITEA-2026-96594GHSA-94RX-FQM6-Q23V

Gitea repository media API stored XSS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 28.1.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • gitea.dev

    through 28.0.0

  • giteaBitnami

    fixed in 28.1.0

References 5

GitHub · go-gitea/gitea

blog.gitea.com