Live threats

All CVEs / Mattermost

CVE-2026-5139Mattermost Server

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
—
Auth required
Yes
Published
Jun 22, 2026
Updated
Jun 23, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-862
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Mattermost Server.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/mattermost/mattermost-server ≥ 11.7.0 < 11.7.1 11.7.1 go get github.com/mattermost/mattermost-server@v11.7.1
Go github.com/mattermost/mattermost-server ≥ 11.6.0 < 11.6.3 11.6.3 go get github.com/mattermost/mattermost-server@v11.6.3
Go github.com/mattermost/mattermost-server ≥ 11.5.0 < 11.5.6 11.5.6 go get github.com/mattermost/mattermost-server@v11.5.6
Go github.com/mattermost/mattermost-server ≥ 10.11.0 < 10.11.18 10.11.18 go get github.com/mattermost/mattermost-server@v10.11.18
Go github.com/mattermost/mattermost-server ≥ 10.11.0+incompatible < 10.11.18+incompatible 10.11.18+incompatible go get github.com/mattermost/mattermost-server@v10.11.18+incompatible
Go github.com/mattermost/mattermost-server ≥ 11.5.0+incompatible < 11.5.6+incompatible 11.5.6+incompatible go get github.com/mattermost/mattermost-server@v11.5.6+incompatible
Go github.com/mattermost/mattermost-server ≥ 11.6.0+incompatible < 11.6.3+incompatible 11.6.3+incompatible go get github.com/mattermost/mattermost-server@v11.6.3+incompatible
Go github.com/mattermost/mattermost-server ≥ 11.7.0+incompatible < 11.7.1+incompatible 11.7.1+incompatible go get github.com/mattermost/mattermost-server@v11.7.1+incompatible

Per OSV / GitHub Advisories (GHSA-2g8v-grq3-hq2g, GO-2026-6480). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mattermostmattermost_server≥ 10.11.0 < 10.11.18
mattermostmattermost_server≥ 11.5.0 < 11.5.6
mattermostmattermost_server≥ 11.6.0 < 11.6.3
mattermostmattermost_server≥ 11.7.0 < 11.7.1

Official sources

References

Links published by the sources. Open them with care.