GitHub Advisory Database
GHSA-4276-cm8c-788h
Mattermost Fails to Properly Validate Team Role Modification
Details
Mattermost versions 10.5.x <= 10.5.8, 9.11.x <= 9.11.17 fail to properly validate authorization for team scheme role modifications which allows Team Admins to demote Team Members to Guests via the PUT /api/v4/teams/team-id/members/user-id/schemeRoles API endpoint.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/mattermost/mattermost-server | From 10.5.0 before 10.5.9 (fixed in 10.5.9) |
| Go | github.com/mattermost/mattermost-server | From 9.11.0 before 9.11.18 (fixed in 9.11.18) |
| Go | github.com/mattermost/mattermost/server/v8 | All versions before 8.0.0-20250721095846-c602a4a78e1f (fixed in 8.0.0-20250721095846-c602a4a78e1f) |
| Go | github.com/mattermost/mattermost-server/v5 | All versions up to and including 5.39.3 |
| Go | github.com/mattermost/mattermost-server/v6 | All versions up to and including 6.7.2 |