Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/mattermost/mattermost-server
  4. ›
  5. CVE-2026-5139

CVE-2026-5139: Mattermost doesn't enforce administrator authorization on the {{setDefaultInstance}} call within the {{/gitlab connect}} command handler

June 22, 2026 (updated September 15, 2026)

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 }} slash command.. Mattermost Advisory ID: MMSA-2026-00644

References

  • github.com/advisories/GHSA-2g8v-grq3-hq2g
  • mattermost.com/security-updates
  • nvd.nist.gov/vuln/detail/CVE-2026-5139

Code Behaviors & Features

Detect and mitigate CVE-2026-5139 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 10.11.0 before 10.11.18, all versions starting from 11.5.0 before 11.5.6, all versions starting from 11.6.0 before 11.6.3, all versions starting from 11.7.0 before 11.7.1

Fixed versions

  • 10.11.18
  • 11.5.6
  • 11.6.3
  • 11.7.1

Solution

Upgrade to versions 10.11.18, 11.5.6, 11.6.3, 11.7.1 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization

Source file

go/github.com/mattermost/mattermost-server/CVE-2026-5139.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:25 +0000.