Mattermost versions 9.5.x <= 9.5.7, 9.10.x <= 9.10.0 fail to enforce proper access controls which allows any authenticated user, including guests, to mark any channel inside any team as read for any user.
Update Mattermost to versions 9.11.0, 9.5.8, 9.10.1 or higher.