MEDIUM5.4
GHSA-2g8v-grq3-hq2g
Mattermost doesn't enforce administrator authorization on the {{setDefaultInstance}} call within the {{/gitlab connect}} command handler
Quick fix
GHSA-2g8v-grq3-hq2g — github.com/mattermost/mattermost-server: upgrade to the fixed version with the command below.
go get github.com/mattermost/mattermost-server@v11.7.1Details
Mattermost versions 11.7.x <= 11.7.0, 11.6.x <= 11.6.2, 11.5.x <= 11.5.5, 10.11.x <= 10.11.17 fail to enforce administrator authorization on the {{setDefaultInstance}} call within the {{/gitlab connect}} command handler, which allows any authenticated user to overwrite the global default GitLab instance configuration via the {{/gitlab connect <instance-name>}} slash command.. Mattermost Advisory ID: MMSA-2026-00644
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/mattermost/mattermost-server
Introduced in:
11.7.0Fixed in: 11.7.1Fix
go get github.com/mattermost/mattermost-server@v11.7.1Go/github.com/mattermost/mattermost-server
Introduced in:
11.6.0Fixed in: 11.6.3Fix
go get github.com/mattermost/mattermost-server@v11.6.3Go/github.com/mattermost/mattermost-server
Introduced in:
11.5.0Fixed in: 11.5.6Fix
go get github.com/mattermost/mattermost-server@v11.5.6Go/github.com/mattermost/mattermost-server
Introduced in:
10.11.0Fixed in: 10.11.18Fix
go get github.com/mattermost/mattermost-server@v10.11.18