Cross-site request forgery in Gitea - CVE-2026-107618
Published: October 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to overwrite or clear repository topics without authorization.
The vulnerability exists due to missing cross-site request forgery protection in the Gitea POST /{owner}/{repo}/topics route when handling cross-site requests, because the route omits the sign-in middleware that performs cross-origin checks. A remote attacker can lure a logged-in repository administrator to a malicious or compromised website that submits a cross-site POST with the administrator's session cookie to overwrite or clear that repository's topics.