# GHSA-2G8V-GRQ3-HQ2G: Mattermost doesn't enforce administrator authorization on the {{setDefaultInstance}} call within the {{/gitlab connect}} command handler

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-06-22
- Modified: 2026-09-28

## Tracked as

- [CVE-2026-5139](https://cve.now/CVE-2026-5139.md): GitLab Plugin Allows Non-Admin Users to Modify Default Instance Configuration

## Also published as

- [GO-2026-6480](https://cve.now/GO-2026-6480.md) (Go)

## Affected versions

- github.com/mattermost/mattermost-server (Go): from 11.7.0, fixed in 11.7.1
- github.com/mattermost/mattermost-server (Go): from 11.6.0, fixed in 11.6.3
- github.com/mattermost/mattermost-server (Go): from 11.5.0, fixed in 11.5.6
- github.com/mattermost/mattermost-server (Go): from 10.11.0, fixed in 10.11.18

## Description

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

## References

- https://nvd.nist.gov/vuln/detail/CVE-2026-5139
- https://github.com/mattermost/mattermost
- https://mattermost.com/security-updates

Page: https://cve.now/GHSA-2G8V-GRQ3-HQ2G

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
