Advisory

GHSA-2g8v-grq3-hq2g

Also known as: CVE-2026-5139, GO-2026-6480

Summary

Mattermost doesn't enforce administrator authorization on the {{setDefaultInstance}} call within the {{/gitlab connect}} command handler

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-06-22 15:30 UTC
Modified
2026-09-28 17:10 UTC

Affected packages and fixes

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 11.7.0, fixed 11.7.1 (semver)

Fixed versions

11.7.1

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 11.6.0, fixed 11.6.3 (semver)

Fixed versions

11.6.3

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 11.5.0, fixed 11.5.6 (semver)

Fixed versions

11.5.6

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 10.11.0, fixed 10.11.18 (semver)

Fixed versions

10.11.18

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences