Improper access control in Gitea - CVE-2026-20706
Published: June 8, 2026
Gitea
Detailed vulnerability description
The vulnerability allows a remote user to disclose sensitive repository contents.
The vulnerability exists due to improper access control in the /archive/* download endpoint when handling archive download requests with an OAuth2 or personal access token that has only non-repository scope. A remote user can send a crafted request to download a full private repository archive to disclose sensitive repository contents.
The issue affects the web archive download path, while the API archive endpoint is properly scope-checked.