You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Channel language_exists and languages actions skip the channel permission check #6399
Confirm that you’ve read the guidelines in your comment.
Overview
The channel language_exists and languages actions load the channel through Channel.objects rather than get_object(). Any logged-in user can read the content languages of a private channel they can't view, given its id, and the response also shows whether that channel id exists. The other detail actions on the viewset use get_object().
Reproduced: a logged-in user with no access to a private channel gets 200 with its languages from GET /api/channel/<id>/languages. The same user gets 404 from GET /api/channel/<id>.
A logged-in user who can't view a channel gets 404 from both GET /api/channel/<id>/languages and GET /api/channel/<id>/language_exists, the same as for a nonexistent channel id.
Editors and viewers of the channel get the same responses as before.
Testing
Regression tests cover a non-member, a viewer and a nonexistent id for both actions.
AI usage
I chose which audit findings belong in #6398 and set the access pattern. Claude Code found and reproduced this gap and drafted this issue.
Activity
learning-equality-bot commentedon Nov 15, 2026
Hi! 👋
This issue is available for contribution and supports self-assignment. Here's how to get started:
/assignto assign yourself to this issue📖 Read the Contributing guidelines before starting.
Are you preparing for Google Summer of Code? See our GSoC guidelines.