Mattermost fails to check the required permissions in the POST /api/v4/channels/stats/member_count API resulting in channel member counts being leaked to a user without permissions.
Update Mattermost Server to versions 8.1.8, 9.4.0 or higher.