fix(security): enforce token scopes on raw, media, and attachment downloads #141

Closed
opened 2026-05-24 08:20:37 +00:00 by jmiller · 0 comments
Owner

Summary

Raw file, media, and attachment download endpoints do not check token scopes. A token without read:repository scope can access these resources.

Upstream Reference

Severity: High

Missing authorization checks on file download endpoints.

Action

Cherry-pick both PRs from upstream release/v1.26.


Authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

## Summary Raw file, media, and attachment download endpoints do not check token scopes. A token without `read:repository` scope can access these resources. ## Upstream Reference - PR: https://github.com/go-gitea/gitea/pull/37733 (backport of #37698) - Follow-up: https://github.com/go-gitea/gitea/pull/37757 (backport of #37735) - Merged: 2026-05-16 / 2026-05-18 - Branch: release/v1.26 ## Severity: High Missing authorization checks on file download endpoints. ## Action Cherry-pick both PRs from upstream `release/v1.26`. --- *Authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>*
jmiller added the priority: highsecuritytype: bugupstream labels 2026-05-24 08:25:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#141